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.
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 |