Files
wibosim/docs/API.md
T
db9979andClaude Opus 5.5 cdcab61403 Client: Politik, Anleihen/Rohstoffe/Devisen, Übernahmen, Makro und Admin für Phase 3/4
- Marktliste nach Anlageklassen gruppiert, Instrumentansichten mit Zinskurve und Haushalt
- Übernahmeangebot mit Andienung, Studien, Kontrollbox, Sensitivitäten
- Politik-Ansicht: Gesetzgebung (Pipeline), Vorlagen, Parteien & Wahl, Haushalt & Lobby
- Makro: Szenario, Zinskurve, Frühindikatoren; Briefing und Kalender erweitert
- Admin: Szenario, Übernahme, Kapitalmaßnahmen, Studie, Ölschock, Wahl
- Server: Abstimmungsbeginn wird an alle Clients gemeldet
- API-Doku und Screenshots ergänzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUhQVoPUusUzxgxLWkK
2026-12-03 15:23:06 +00:00

221 lines
20 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WiBoSim – Schnittstellen (Stand Sprint A–E, Phase 3: Clans & Fonds, Turniere)
Alle Texte sind deutsch. Beträge in Euro, Prozentwerte als Zahl in Prozent (z. B. `returnPct: 3.2`), sofern nicht anders angegeben; Anteile (`marginUsage`, `util`, Gebühren) als Bruch (0–1). Zeitstempel in Millisekunden (Unix).
## REST
| Methode & Pfad | Auth | Body / Antwort |
|---|---|---|
| `POST /api/register` | – | `{name, password (≥ 8), email?}` → `{token, profile}` (5 je Stunde und IP) |
| `POST /api/login` | – | `{name, password}` → `{token, profile}`; nach 10 Fehlversuchen 15 Min. Sperre |
| `POST /api/logout` | Bearer | beendet die Sitzung |
| `PUT /api/me` | Bearer | `{email?, notify?: {battle, season, achievements, margin, morning, daily}, novice?, password?, oldPassword?}` → `{profile, token}` (neues `token` nur bei Passwortwechsel, alle anderen Sitzungen sind dann abgemeldet) |
| `GET /api/info` | – | `{sectors, achievements, battleModes, timeModes, violations, motd, startCash, mailEnabled, fees: {taker, maker, fixed}}` |
| `GET /api/market` | – | Marktansicht (siehe `market`) |
| `GET /api/news`, `GET /api/events` | – | Listen |
| `POST /api/action/:name` | optional | jede WebSocket-Aktion (siehe unten) per REST, Body = Nachricht ohne `type` |
| `GET /api/health` | – | `{ok, lastTickAt, players, online, day, season, phase, timeMode}` – 503, wenn der Spieltakt hängt |
| `GET /metrics` | – | Prometheus-Text |
| `GET /api/admin/overview` | Admin | `{players[], online, season, day, phase, macro, cases[], symbols[], mailEnabled, sectors, uptime, memoryMb, backups[], comments[], tickMs}` |
| `GET /api/admin/settings` | Admin | `{values: {game, news, smtp}, schema: {section: {key: {group, label, unit, min, max, enum, type, secret, default}}}, presets}` |
| `PUT /api/admin/settings` | Admin | `{game?: {...}, news?: {...}, smtp?: {...}}` → wie GET + `changed: ['game.tickMs', …]`; Fehler als `{error}` |
| `GET /api/admin/audit` | Admin | `[{ts, actor, action, detail}]` |
| `POST /api/admin/action` | Admin | `{action, id?, value?}` → `{ok, detail}` (Aktionen siehe unten) |
| `POST /api/admin/testmail` | Admin | `{to?}` |
Authentifizierung: Header `Authorization: Bearer <token>`. Tokens gelten 30 Tage (gleitend).
**Admin-Aktionen:** `reset`, `ban`, `unban`, `admin` (value: bool), `cash` (value: Betrag, auch negativ), `clearCompliance`, `mute` (value: Minuten), `unmute`, `delete`, `deleteComment` (value: Kommentar-ID), `endSeason`, `centralBank` (Zinsentscheid jetzt), `nextBill` (Abstimmung jetzt beenden), `earnings` (value: Symbol, Zahlen zum nächsten Handelstag), `news` (value: `{title, sentiment −1…1, sectors[]}`), `broadcast` (value: Text), `backup`, `tournament` (value: `{op: 'create', name, size (4/8/16), mode, durationMin, signupEndsAt? (ms) | signupMin?}` → `{id}`, `{op: 'start', id}` (Anmeldung sofort schließen und starten), `{op: 'cancel', id, reason?}` (laufende Turnier-Battles werden annulliert)). Am eigenen Konto sind `ban`, `delete`, `admin` gesperrt.
## WebSocket `/ws`
Nachrichten sind JSON-Objekte mit `type` (≤ 30 Zeichen) und optional `reqId`. Max. 16 KB je Nachricht, Burst 40 / dauerhaft 15 Nachrichten je Sekunde. Antwort auf jede Anfrage: `{type: 'reply', reqId, ok, ...daten}` bzw. `{type:'reply', reqId, ok:false, error}`.
### Client → Server
| type | Felder | Antwortdaten |
|---|---|---|
| `auth` | `token` | `{profile, portfolio, battlePortfolio, battle, parliament, battles, quests, inbox}` |
| `logout` | – | – |
| `subscribe` | `symbol` | `{symbol, candles, depth, tape}`; danach kommen `book`-Nachrichten für dieses Symbol |
| `spectate` | `battleId` (oder null zum Beenden) | `{battle}`; danach `spectate`-Nachrichten (nur angemeldet) |
| `order` | `symbol, side ('buy'/'sell'), orderType ('limit','market','stop','stoplimit','takeprofit','trailing'), qty, price? (Limit), trigger? (Stop/TP/Stop-Limit), trailPct? (Trailing, in %), tif? ('day','gtc','gtd','ioc','fok'), expireAt? ('YYYY-MM-DD' bei gtd), peak? (Iceberg), bracket? {stopTrigger \| trailPct, tpTrigger}, oco? {trigger}, account? ('main'/'battle'/'fund')` | `{order}` |
| `cancel` | `orderId` (Zahl oder `c…` für bedingte Orders) | – |
| `cancelAll` | `account?` ('main'/'battle'/'fund') | – |
| `portfolio` | – | `{portfolio, battlePortfolio, battle, fundPortfolio}` (`fundPortfolio` nur für Fondsmanager, sonst null) |
| `journal` | – | `{journal: {rows[], stats}}` |
| `company` | `symbol` | `{company}` |
| `candles` | `symbol` | `{candles}` |
| `calendar` | – | `{calendar: {items[], day, reportingSeason, now}}` |
| `briefing` | – | `{briefing}` |
| `leaderboard` | – | `{leaderboard}` |
| `regulator` | – | `{cases[], violations}` |
| `parliament` | – | `{parliament}` |
| `vote` | `billId, yes` | `{parliament}` |
| `battles` | – | `{battles}` |
| `challenge` | `opponent (Name), durationMin, mode` | `{invite}` |
| `respond` | `inviteId, accept` | `{battles}` |
| `rematch` | `battleId` | `{battles}` |
| `queue` | `mode, durationMin, bot?` (bot: sofort gegen Index-Bot) | `{battles}` |
| `queueLeave` | – | `{battles}` |
| `liveBattles` | – | `{live[]}` |
| `quests` | – | `{quests}` |
| `league` | – | `{league}` |
| `inbox` | – | `{inbox: {items[], unread}}` |
| `read` | `ids` (Array) oder weglassen = alle | `{inbox}` |
| `profile` | `name` | `{profile}` (öffentlich) |
| `friends` / `follow` / `unfollow` | `name` (bei follow/unfollow) | `{friends[]}` |
| `comments` | `target` (`stock:NVLT`, `bill:<billId>` oder `clan:<clanId>` – Clan-Pinnwand nur für Mitglieder) | `{comments[]}` |
| `comment` | `target, text (≤ 280)` | `{comment}` |
| `clans` | `q?` (Suche nach Name/Kürzel) | `{clans: {ranking[], results[], maxMembers, minTrades}}` (Einträge wie leaderboard.clans) |
| `clan` | `clanId?` (ohne = eigener Clan) | `{clan}` (siehe **clan**) |
| `clanCreate` | `name (3–24), tag (2–4 Großbuchstaben, eindeutig), open (bool)` | `{clan}` |
| `clanJoin` | `clanId` (offener Clan oder vorliegende Einladung) | `{clan}` |
| `clanDecline` | `clanId` | `{clan}` |
| `clanLeave` | – | `{clan}` (Gründer geht → ältestes Mitglied übernimmt; letztes Mitglied → Clan wird aufgelöst, Fonds liquidiert) |
| `clanKick` | `name` (nur Gründer) | `{clan}` |
| `clanInvite` | `name` (nur Mitglieder; 7 Tage gültig) | `{clan}` |
| `clanSettings` | `open` (nur Gründer) | `{clan}` |
| `fundOpen` | – (nur Gründer; legt das Fondskonto `f:<clanId>` an) | `{clan}` |
| `fundInvest` | `amount` (€, aus dem Hauptdepot in den Fonds des eigenen Clans, zum aktuellen NAV) | `{result: {units, nav, amount}, clan}` |
| `fundRedeem` | `clanId, units` oder `all: true` | `{result: {units, nav, amount}, clan}`; Fehler, wenn das freie Fondsguthaben nicht reicht |
| `tournaments` | – | `{tournaments}` (siehe **tournaments**) |
| `tourJoin` | `tournamentId` (bis Anmeldeschluss) | `{tournaments}` |
| `tourLeave` | `tournamentId` (bis Anmeldeschluss) | `{tournaments}` |
| `me` | – | `{profile}` |
| `claimAdmin` | `code` | `{profile}` |
### Server → Client
| type | Inhalt |
|---|---|
| `hello` | `{market, news[], events[], parliament, leaderboard, motd, sectors, battleModes, achievements}` |
| `market` | jede Taktung: `{market, trades[]}` |
| `book` | `{symbol, depth: {bids[{price,qty,count}], asks[]}, tape[], candle, indicative, status}` |
| `portfolio` | `{portfolio, battlePortfolio, battle, fundPortfolio}` bei Änderungen bzw. alle 3 Takte |
| `leaderboard` | alle 5 Takte |
| `phase` | `{phase}` (Phasenwechsel) |
| `news`, `event` | einzelne Meldung |
| `parliament` | `{parliament}` |
| `inbox` | `{item, unread}` – neue Benachrichtigung |
| `fill` | `{side, symbol, qty, price, account ('main'/'battle'/'fund'), realized, auction, maker, fee}` |
| `fund` | `{text}` – Ein- oder Auszahlung in den verwalteten Clan-Fonds (an den Fondsmanager) |
| `tournament` | `{text}` – neues Turnier angekündigt (an alle) |
| `dividend` | `{symbol, amount}` |
| `condTriggered` | `{text, order?}` |
| `marginWarning` / `marginCall` | `{usage}` / `{text}` |
| `regulator` | `{case, text}` |
| `achievement` | `{achievement: {id, icon, title, desc}}` |
| `levelUp` | `{level}` |
| `quest` | `{quest}` – erledigt |
| `battleInvite`, `battleDeclined`, `battle`, `battleEnd`, `spectate` | Battle-Ereignisse |
| `comment`, `commentDeleted` | neue/gelöschte Kommentare (`clan:<id>` nur an Mitglieder) |
| `season`, `seasonRecap` | Saisonwechsel, persönlicher Rückblick `{recap}` |
| `announcement` | `{text}` |
| `kicked` | `{text}` – Verbindung wird getrennt (gesperrt/gelöscht) |
| `error` | `{error}` (z. B. Ratenbegrenzung) |
## Datenstrukturen (Auszug)
**market**: `{day, phase ('closed'|'preopen'|'opening'|'continuous'|'closing'), label, endsAt, randomEnd, openAt, closeAt, nextPreOpen, date, timeMode, turbo, timezone, serverTime, index: {value, change}, tickers[], macro, marketHaltLevel, season: {n, endsAt}, reportingSeason}`
**ticker**: `{symbol, name, sector, last, prevClose, open, change, high, low, volume, bid, ask, mcap, vol, pe, divYield, status ('continuous'|'vola'|'call'|'closed'), volaEndsAt, indicative: {price, volume, surplus}|null, htb, borrowRate, earningsIn, exDivIn}`
**macro**: `{rate, inflation, gdp, unemployment, consensus, surprise, releasedAt, sentiment, sectorMood, cb: {probs: {'-0.25': 0.2, '0': 0.7, …}, mean, day, hint}, cbAt, lastDecision, history[], targets}`
**portfolio**: `{accountId, kind ('main'|'battle'|'fund'), fundValue (nur main: Wert der Fondsanteile, in equity/returnPct enthalten), rules, cash, available, equity, startCash, returnPct, realized, fees, trades, dayPnL, dayPnLPct, longValue, shortValue, shortCapacity, marginUsage, locked, recalls[{symbol, targetShort, deadline}], borrowAccrued, positions[{symbol, qty, avgCost, last, value, pnl, pnlPct, dayChange, short, borrowRate}], orders[{id, symbol, side, type, price, qty, filled, ts, status ('open'|'partial'|'queued'), tif, expireAt, peak, bracket}], cond[{id, symbol, side, type, label, qty, trigger, limit, trailPct, status ('conditional'|'pending'), oco, parent}], compliance, rank: {rank, of}|null, minTradesRanked}`
**profile (eigenes)**: `{id, name, email, notify, isAdmin, elo, battleStats, achievements[], allAchievements[], joined, seasonsPlayed, bestReturn, compliance, xp, level, tier, league, novice, unread, recap, mutedUntil, adminSetupOpen}`
**company**: Stammdaten, `last, prevClose, mcap, vol, growth, epsTTM, pe, sectorPe, payout, lastDividend, divYield, pendingDividend, exDivIn, consensus, earningsIn, quarters[], analysts {buy, hold, sell, target, low, high, ratings[]}, policy[], holders[], shortInterest, lending {pool, used, util, rate, hardToBorrow, recalled}, flowPrev {day, bots: {mm|noise|momentum|value|panic|inst: {name, desc, qty, pct}}, players}, status, volaEndsAt, indicative, lastAuction, news[], dailyBars[{day, ts, o, h, l, c, v}]` – **kein** Fundamentalwert.
**parliament**: `{id, bill {id, title, effects, macro, axis}, endsAt, secretFrom, secret, yes, no (null in der verdeckten Phase), voters, quorum, weight, baseline, probability, register[{name, pct, yes}], myVote, myConflict, sectors, source, inForceDays, laws[], history[]}`
**battles**: `{active, account, invites[], history[], queue, modes, durations}`
**quests**: `{daily[{id, kind, n, xp, text, progress, done}], weekly[...], xp, level, levelFrom, levelTo}`
**league**: `{tier, tierIndex, group, tiers[], size, promote, relegate, table[{pos, name, returnPct, trades, me, level}]}`
**leaderboard**: `{season, minTrades, equity[], unranked, day[], week[], sharpe[], elo[], hallOfFame[], clans[{id, name, tag, members, ranked, open, returnPct, nav, rank}], tournamentHall[] (wie tournaments.hall)}`
**liveBattles.live[]**: zusätzlich `tournament` (Turniername oder null).
**fundPortfolio**: wie **portfolio** mit `kind: 'fund'`, dazu `nav, totalUnits, returnPct` (NAV-Rendite ggü. 100). Fondskonten: nur long (keine Leerverkäufe), kein Margin.
**clan**: `{club: {id, name, tag, open, founder, isFounder, member, createdAt, rank, returnPct, ranked, maxMembers, minTrades, members[{name, joinedAt, founder, returnPct, trades, ranked, level, online}], invites[{name, ts}] (nur Gründer), wall ('clan:<id>' für Mitglieder, sonst null), fund: null | {id, nav, returnPct, totalUnits, equity, cash, free, openedAt, manager, isManager, trades, feeRate, feesPaid, maxInvest, minInvest, positions[{symbol, qty, avgCost, last, value, pnlPct, weight}], holders[{name, units, value, share}], myUnits, myValue} (Nicht-Mitglieder ohne Anteile: nur {nav, returnPct, totalUnits, equity})} | null, invites[{clubId, name, tag, members, ts}], holdings[{clubId, name, tag, units, nav, value, free, member}], fundValue}` – mit `clanId` nur `{club}`.
**tournaments**: `{list[{id, name, size, mode, modeName, durationMin, auto, signupEndsAt, status ('signup'|'running'|'done'|'cancelled'), createdAt, reason, players[{name, seed, elo}], count, joined, round, totalRounds, startedAt, endedAt, winnerName, runnerUpName, rounds[{name, matches[{aName, bName, aSeed, bSeed, status ('pending'|'running'|'done'), battleId, note, winnerName, me, aReturn?, bReturn?, endsAt?}]}]}], hall[{id, name, winner, runnerUp, players, modeName, endedAt, season}], sizes, modes, durations}`
**calendar.items**: `{ts, dayIn?, kind ('earnings'|'exdiv'|'macro'|'cb'|'bill'|'law'|'auction'|'season'), symbol?, title, detail?}`
**briefing**: `{phase, phaseText, news[], today[], holdings[{symbol, qty, last, prevClose, indicative, change}], macro, parliament, index, reportingSeason}`
**recap**: `{season, returnPct, equity, rank, of, percentile, trades, bestTrade, worstTrade, winRate, sharpe, tier, newTier, leagueChange, xp, level}`
## Phase 3/4: Politik, Anlageklassen, Unternehmensereignisse, Szenarien
### Client → Server (zusätzlich)
| type | Felder | Antwortdaten |
|---|---|---|
| `government` | – | `{government}` |
| `partyFound` | `name (3–32), short (2–5 Großbuchstaben/Ziffern), pos? {markt, staat, oeko} (−1…1)` | `{government}` – kostet 5.000 € |
| `partyJoin` / `partyLeave` | `partyId` (bei join) | `{government}` |
| `electionVote` | `partyId` | `{government}` – bis zur Wahl änderbar |
| `noConfidenceVote` | `yes` | `{government}` |
| `lobby` | `partyId, amount (≥ 5.000), sector, direction ('plus'\|'minus')` | `{entry, government}` – öffentlicher Eintrag im Lobbyregister |
| `propose` | `template, sector` (Bausteine siehe `info.billTemplates`) | `{parliament}` – nur Parteimitglieder, eine offene Vorlage je Spieler |
| `cosign` | `id` (Vorlage; erneut = zurückziehen) | `{parliament}` |
| `withdrawBill` | `id` | `{parliament}` |
| `tender` | `symbol, qty` (0 = Andienung zurückziehen) | `{offer}` – Andienung aus dem Hauptdepot bei laufendem Übernahmeangebot |
| `curve` | – | `{curve}` |
| `company` | `symbol` | `{company}` – bei Anleihen/Rohstoffen/Devisen die Instrumentansicht (siehe unten) |
`order` funktioniert für alle Instrumente (Aktien, `WIB2`, `WIB10`, `OEL`, `GOLD`, `USD`); Leerverkauf ist überall möglich.
Wer ein Ministerium leitet, darf Aktien der zugeordneten Sektoren nur abbauen (Fehler „Interessenkonflikt“).
### Server → Client (zusätzlich)
| type | Inhalt |
|---|---|
| `government` | `{government}` – nach Umfragen, Wahl, Regierungsbildung, Misstrauensvotum |
| `parliament` | jetzt mit `pipeline[]` und `proposals[]` (siehe unten) |
`hello` enthält zusätzlich `government` und `assetClasses`, die `auth`-Antwort zusätzlich `government`.
`GET /api/info` liefert zusätzlich `assetClasses, scenarios, ministries[{id, name, sectors[]}], billTemplates {key: {label, title, axis, eff, cost, legal}}, sectorPhrase`. Titel einer Spielervorlage: `${billTemplates[t].title} ${sectorPhrase[sector]}`.
### Datenstrukturen
**ticker** (zusätzlich): `kind ('stock'|'bond'|'commodity'|'fx'), corp ('offer'|'trial'|null)`; für Anleihen `yield` (in %), `duration`, `exDivIn` = Handelstage bis zum Kupon, `divYield` = laufende Verzinsung (Kupon/Kurs); `sector` = `kind` bei Nicht-Aktien; `mcap`, `pe`, `earningsIn` sind bei Nicht-Aktien `null`.
Preiseinheiten: Anleihen in € je 100 € Nennwert, `OEL` je Barrel, `GOLD` je 10 g, `USD` je 100 $.
**market** (zusätzlich): `season.scenario {id, title, desc}`, `politics {coalition[] (Kürzel), rating, electionAt, noConfidence}`; `macro.indicators {pmi, climate, consensus, surprise, ts, history[]}`, `macro.curve` (siehe curve).
**curve**: `{points[{T (Jahre), y (%)}], y2, y10, spread, inverted, foreignRate, riskPremium, longNeutral}`
**company (Aktie, zusätzlich)**: `kind: 'stock', corporate {offer {target, targetName, bidder, bidderName, price, premium, probability, daysLeft, authority, tenderedTotal, myTender, role ('target'|'bidder')}|null, trial {drug, phase, daysLeft, probability, up, down}|null, control {by, floor, daysLeft}|null, history[]}, oilSens, fxSens, ministry`
**company (Instrument)**: `{symbol, name, kind, kindName, desc, last, prevClose, vol, baseVol, info, curve (Anleihen), budget {debt, deficit, rating, riskPremium} (Anleihen), foreignRate (USD), rate, holders[], shortInterest, lending, flowPrev, status, volaEndsAt, indicative, lastAuction, news[], dailyBars[]}`;
`info` bei Anleihen `{kind, maturity, coupon, yield, accrued, cleanPrice, duration, nextCouponIn}`, sonst `{kind, base, changeFromStart}`. `holders[].pct` ist bei Instrumenten `null`; es gibt keine Analysten-, Quartals- und Dividendenfelder.
**parliament** (neu aufgebaut): Felder der laufenden Abstimmung wie bisher (`id, bill, endsAt, secretFrom, secret, yes, no, voters, weight, register[{name, pct, mp, proposer, yes}], myVote, myConflict, probability, …` – `id: null`, wenn gerade keine Vorlage in der Abstimmung ist), dazu
`pipeline[{id, stage ('lesung'|'ausschuss'|'abstimmung'|'laenderkammer'|'gericht'), stageLabel, stageEndsAt, bill {id, title, effects, macro, axis, cost (% BIP p. a.), legal}, probability (Inkrafttreten), pParl, pChamber, pCourt, baseline, source ('agenda'|'player'|'news'|'catalog'), proposer, compromise, sectors}]`,
`proposals[{id, title, by, party, cosigners (ohne Antragsteller), needed (inkl. Antragsteller), byGov, ts, effects, cost, axis, mine, signed}]`, `templates`, `stages`, `laws[{title, inForceDay, cost}]`, `history[{title, passed, reason, share (null möglich), expected, source, proposer, playerVotes, playerYes, conflicts, ts}]`.
Hinweise: Ohne laufende Abstimmung ist `source` der Name des Parlaments, sonst der Herkunftsschlüssel der Vorlage. `mine`/`signed` und `myVote` stehen nur in persönlichen Antworten; Broadcasts enthalten sie nicht. `propose`, `cosign` und `withdrawBill` werden nicht an alle gesendet – Clients laden `parliament` bei Bedarf neu.
**government**: `{parties[{id, name, short, color, pos, npc, members, founder, memberNames, funds, onBallot, seats, projected, poll}], seatsTotal, threshold, minMembers, foundCost, lobbyMin, coalition {parties[], leader, head, formedAt, agenda[{id, title, done}], seats}|null, ministers[{id (Ressort), name (Person), sectors[], party (Kürzel), player}] (Ressortname über `info.ministries` per `id`), polls[{ts, day, institute, shares{partyId: Anteil}}], election {at, done, voters, myVote, weight}, lastResult {shares, seats, turnout}, chamber {pos}, budget {debt, deficit, structural, rating, crisis, riskPremium, history[{day, debt, deficit, rp}]}, lobby[{ts, name, party, amount, sector, direction}], noConfidence {endsAt, alt[], voters, myVote}|null, history[], me {party, office {ministry, sectors}|null, mp}}` – `me`, `election.myVote` und `noConfidence.myVote` nur in persönlichen Antworten (Broadcast: `me: null`).
**briefing** (zusätzlich): `curve, assets[{symbol, name, kind, last, change, yield}], government {coalition, rating, election (Zeitpunkt oder null)}, scenario`.
**calendar.items.kind** (zusätzlich): `'corporate'` (Annahmefrist, Studienergebnis; mit `symbol`), `'election'`; Kuponzahlungen der Anleihen erscheinen als `'exdiv'`.
**profile** (zusätzlich): `party, office`.
### Admin-Aktionen (zusätzlich)
`scenario` (value: Szenario-ID, sofort anwenden), `takeover` (value: `{target, bidder?}` oder Symbol), `capitalIncrease`, `buyback`, `trial` (value: Symbol), `oilShock` (value: −0,5…0,5, log. Größe), `election` (Wahl sofort abhalten).
### Einstellungen (zusätzlich)
`billCosigners` (Politik), `corporateEvents`, `scenario` (Gruppe „Wirtschaft & Szenarien“; `zufall` wählt bei Saisonstart zufällig).