Resolve market positions
resolveSettle a paper account's positions in one closed market, paying $1 per winning share and canceling resting orders. Use when a market has closed and you need payouts.
Instructions
Settle an account's positions in one closed market, paying $1 per winning share.
Writes payouts to the local account and cancels resting orders on that market. Fails if the market is not closed, the winner is ambiguous, or no position is held. Use resolve_all to settle every closed market at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Paper account name; any name without '/', '\', '..' or surrounding spaces. Each name is a separate local account. Default 'default'. | default |
| slug_or_id | Yes | Market slug or condition ID. For a Kalshi market use the slug 'kalshi:<TICKER>', e.g. 'kalshi:KXNBAGAME-26OCT16DENLAL-LAL'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |