Sell shares
sellLiquidate held shares of a Polymarket or Kalshi outcome for paper cash, filling immediately against the live order book and recording simulated trade fees.
Instructions
Sell held shares of a Polymarket or Kalshi ('kalshi:') outcome for paper cash.
Fills immediately against the live order book and records the trade and fee (simulated; no real order). Use place_limit_order with side 'sell' to rest an exit at your price, or resolve to collect payout on a closed market.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shares | Yes | Number of shares to sell, at most the shares held in that outcome. | |
| account | No | Paper account name; any name without '/', '\', '..' or surrounding spaces. Each name is a separate local account. Default 'default'. | default |
| outcome | Yes | Outcome to trade, e.g. 'yes' or 'no' (case-insensitive); must match one of the market's outcomes. | |
| order_type | No | 'fok' (fill-or-kill: all or nothing) or 'fak' (fill-and-kill: partial fills allowed). Default 'fok'. | fok |
| 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 |