Buy shares
buyPurchase outcome shares on Polymarket or Kalshi with simulated paper money, filling immediately against the live order book and recording the trade and fee.
Instructions
Buy shares of a Polymarket or Kalshi ('kalshi:') outcome with paper money.
Fills immediately against the live order book and records the trade and fee (simulated; no real order). Kalshi fees follow the series fee schedule. Use place_limit_order for a resting order at your price, or sell to exit.
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 |
| outcome | Yes | Outcome to trade, e.g. 'yes' or 'no' (case-insensitive); must match one of the market's outcomes. | |
| amount_usd | Yes | USD to spend, e.g. 100. Minimum 1.0 on Polymarket; no minimum on Kalshi. | |
| 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 |