buildOrder
Build an unsigned order payload for prediction markets to inspect or submit later. Supports limit and market orders across multiple exchanges.
Instructions
Build an order payload without submitting it to the exchange. Returns the exchange-native signed order or request body for inspection, forwarding through a middleware layer, or deferred submission via submitOrder().
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | Yes | The prediction market exchange to target. | |
| marketId | Yes | The market to trade on. | |
| outcomeId | Yes | The outcome to trade. | |
| side | Yes | Order side: buy or sell. | |
| type | Yes | Order type: market (execute immediately) or limit (resting at a price). | |
| amount | Yes | Size of the order in contracts/shares. | |
| price | No | Required for limit orders | |
| fee | No | Optional fee rate (e.g., 1000 for 0.1%) | |
| tickSize | No | Optional override for Limitless/Polymarket | |
| negRisk | No | Optional override to skip neg-risk lookup (Polymarket) | |
| onBehalfOf | No | Limitless delegated signing: profile ID to trade on behalf of | |
| credentials | No | Venue credentials (privateKey, apiKey, etc.). Only needed for authenticated operations like trading. | |
| verbose | No | Return full uncompacted response. Default false returns a compact, agent-friendly summary. |