Types & statuses
Values returned on order objects and accepted by POST /api/v1/orders.
Order types
Limit May match once eligible to execute; an eligible unfilled remainder rests at the limit price. Requires price as a decimal string in (0,1) with exactly 2 decimals. Set postOnly to true to reject an order that would immediately take liquidity.Market Consumes available liquidity once eligible to execute. Optional price in [0,1] sets the maximum buy price or minimum sell price per fill. Any unfilled remainder is cancelled and never rests.StopLoss Conditional. Triggers a market-style execution when last trade price falls to triggerPrice.TakeProfit Conditional. Triggers a market-style execution when last trade price rises to triggerPrice.Order statuses
New Accepted by API; not yet on the book.Placed Resting on the book (Limit) or armed (StopLoss/TakeProfit).Filled Fully executed. cum_quantity == requested quantity.Cancelled Cancelled by user (or auto-cancelled at market close).InternalCancel Engine could not place the resting remainder (e.g. insufficient balance after partial fill). Includes a reason string.Cursor pagination
Page 1 Omit cursor. Use limit to choose 1-500 rows; the default is 100.Next page Pass nextCursor as cursor. Stop when nextCursor is null.Stable filters Keep marketId, outcome, limit, startTime, and endTime fixed within one cursor chain.Trade burns Trades and burns page independently. Pass nextCursor as cursor and burnsNextCursor as burnsCursor.Row identity Dedup on fill_id (trades) and burn_uid (burns). trade_id and burn_id restart at 1 in every market, and one match writes one row per leg — 2 for a regular trade, N for a cross trade (N = outcomes) — so those keys repeat by design.Engine RPC reference
Engine order WebSocket RPC names are listed for debugging direct ME connections — production bots should use REST.
new_order Engine order RPC behind POST /api/v1/orders. Wire params use snake_case fields such as market_id, trigger_price, quote_quantity, and optional client_order_id. post_only: true requires Limit and rejects immediate direct or cross execution.batch_new_order Behind POST /api/v1/orders/batch. Shared market_id/user plus 1–32 place legs (Limit/StopLoss/TakeProfit only; Market rejected). Legs may fill. A committed batch can include failed legs; REST returns HTTP 400 with results in request order. Successful legs remain committed. One write rate unit per HTTP request.cancel_order Engine order RPC behind DELETE /api/v1/orders. Cancels by numeric order_ids and/or client_order_ids (union). Both empty = cancel-all for that user in the market.replace_order Behind POST /api/v1/orders/replace. Replace or amend one open Limit (market_id, exactly one of order_id / client_order_id, price, quantity; optional replacement_client_order_id, post_only, and revision). Outcome, side, and type are copied from the source order. revision is a positive safe integer (1–9007199254740991) for the open order lineage; equal or lower values return stale order revision before mutation. Accepted values survive engine restarts and follow replacements and alias renames. Omitting revision keeps legacy behavior and preserves its stored value. Cancellation or full fill ends the lineage; use a fresh client_order_id for a new order. post_only defaults to false on each request; a would-take rejection keeps the source unchanged.batch_replace_order Behind POST /api/v1/orders/replace/batch. Shared market_id/user plus 1–32 replace legs. Each leg can include revision under the replace_order rules; it is not a batch-wide counter. A committed batch can include failed legs; REST returns HTTP 400 with results in request order. Stale-revision or post-only would-take rejection keeps that source; other legs continue. One write rate unit per HTTP request.query_orders Engine order RPC used to list a user's open orders for one market.