place_prediction_order
Buy or sell a prediction outcome with a fill-or-kill market order (fills entirely at a protected price or nothing happens). BUY: amount_usd (min $1; Polymarket's taker fee and our builder fee go on top — the same everyone pays; max_spend_usd caps the all-in spend). SELL: shares. Optional limit_price (BUY: max, SELL: min) — the house price guard still applies, the stricter wins. Returns typed_data: sign it with your AGENT wallet (EIP-712), then submit_prediction_order within 60s. Your caps (order size, account exposure, daily loss) count perps and predictions together; sells only reduce and skip them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token_id": "<token_id>",
"side": "<side>"
},
"name": "place_prediction_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy = buy shares of this outcome; sell = sell shares you hold | |
| shares | No | SELL only: how many shares to sell | |
| token_id | Yes | The outcome's CLOB token id (decimal string) from list_prediction_markets | |
| amount_usd | No | BUY only: USD to spend (min $1; fees go on top) | |
| limit_price | No | Optional worst price as a probability 0–1 (buy: max, sell: min); it can only tighten the house guard | |
| max_spend_usd | No | BUY only: cap on the all-in spend, fees included | |
| client_order_id | No | Your own id for this order (up to 64 characters) |