POST /orders/, listed via GET /orders/, and canceled via PATCH /orders/{id}/cancel/.
Order types
- Market order
- Limit order
Set
price to null to place a market order. The order executes immediately at the best available price in the order book.Use market orders when you want guaranteed execution and don’t need to control the exact price.Side: bid vs ask
Theside field specifies whether you are buying or selling shares.
| Value | Meaning |
|---|---|
bid | You are buying shares |
ask | You are selling shares you already hold |
Position: long vs short
Theposition field specifies which direction you are betting.
| Value | Meaning |
|---|---|
l (long) | Betting in favor of the outcome — you profit if it resolves true |
s (short) | Betting against the outcome — you profit if it resolves false |
Long and short positions can both be bought (
bid) or sold (ask). For example, selling a long position (ask + l) reduces your existing long exposure.Order lifecycle
| Status | Description |
|---|---|
open | The order is in the order book, waiting to be matched |
partial_filled | Some shares have been matched; the rest remain open |
filled | The order has been fully executed |
canceled | The order was canceled before fully filling |
processing | The order is being processed — transient state |
Order fields reference
shares vs amount
shares vs amount
expired_at
expired_at
Set
expired_at to an ISO 8601 datetime string to automatically cancel any unfilled portion of the order after that time.If omitted, the order remains open until filled, manually canceled, or the event closes.cancel_conflicting_orders
cancel_conflicting_orders
Set
cancel_conflicting_orders to true to automatically cancel any of your existing open orders on the same market that would conflict with the new order before placing it.This is useful when you want to change your position without manually canceling previous orders first.Full order fields
| Field | Type | Description |
|---|---|---|
market | integer | ID of the market (outcome) to trade |
side | string | bid (buy) or ask (sell) |
position | string | l (long) or s (short) |
price | float | null | Limit price 0–1, or null for a market order |
shares | float | Number of shares (use instead of amount) |
amount | float | Monetary amount to spend (use instead of shares) |
currency | string | OOM, USDC, USDT, or USD |
expired_at | datetime | Auto-cancel time for unfilled order |
cancel_conflicting_orders | boolean | Cancel conflicting open orders before placing |