wait_for_settlement
Wait for an event outcome to settle and report the winning contract; on timeout, return pending so you can call again to continue polling.
Instructions
Wait for an event's outcome to settle and report which side won.
A 15-minute window settles a few minutes after it closes, which can be longer than one call waits: on a timeout the response has status "pending" and the outcome's current state — call again to keep waiting.
Once settled, the response carries the outcome (with settledOutcome, e.g.
SETTLED_OUTCOME_YES), winner (the contract symbol that paid out, absent for any
settlement other than YES/NO), and, if contract_symbol was given, won.
Args: event_symbol: The eventSymbol, e.g. "KALSHI.KXBTC15M-26OCT201200". outcome_id: The outcome to watch (outcomeId from get_event_details). May be omitted for an event with a single outcome, such as a 15-minute "Up or Down" window. contract_symbol: Optional contract you hold or bought, e.g. "KALSHI.KXBTC15M-26OCT201200-00.Y", to report whether it won. timeout_seconds: How long to wait in this call (0 to 120; default 60). 0 checks once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome_id | No | ||
| event_symbol | Yes | ||
| contract_symbol | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |