create_pm_order
Place a prediction-market limit order under policy, signed server-side with the stored credential. Polymarket: condition_id, token_id, action, price_usd (e.g. '0.55'), size_shares. Auth required.
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": {
"wallet": "<wallet>",
"credential_id": "<credential_id>",
"action": "<action>"
},
"name": "create_pm_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | optional current exposure: {market_exposure_usd, realized_loss_today_usd, total_open_exposure_usd} as decimal strings | |
| venue | No | prediction-market venue (default polymarket) | polymarket |
| action | Yes | ||
| wallet | Yes | treasury wallet whose policy governs the order | |
| token_id | No | Polymarket: outcome token id, decimal string | |
| price_usd | No | Polymarket: limit price, '0.xx' | |
| size_shares | No | Polymarket: share count, decimal string | |
| condition_id | No | Polymarket: market condition id | |
| credential_id | Yes | stored credential id (uuid) | |
| client_order_id | No | optional idempotency uuid |