Order Management
Query your order history and cancel pending limit orders.Order Endpoints Summary
PolySimulator offers two order placement endpoints. Use the one that fits your workflow:Key difference: The native
/v1/orders endpoint uses order_type for
market/limit and time_in_force for GTC/FOK/IOC. It also accepts FAK
(Polymarket’s term for IOC) and normalises it to IOC — so a listed order
may show time_in_force: "IOC" even though you sent FAK. The
CLOB-compatible endpoint uses order_type for the time-in-force policy
(matching Polymarket’s schema). See CLOB Compatibility
for the CLOB endpoint schema.Rolling out: real GTD + post-only. A flag-gated engine upgrade is
rolling out (see Placing Orders for the full
list). Once active:
order_type=GTD on /v1/clob/order (and
time_in_force=GTD on /v1/orders) becomes a true Good-Til-Date —
the order carries a unix-seconds expiration, the matching engine skips
and auto-cancels it once the timestamp passes (the cancelled row carries
cancelled_reason: "gtd_expired"), and an expiration in the past is
rejected at placement with INVALID_ORDER_EXPIRATION. Both endpoints
also gain Polymarket’s post_only option (reject-if-marketable).
Watch the changelog for activation.List Orders
- Pending limit orders — unfilled GTC orders still resting on the book.
- Filled / cancelled orders — executed or terminated trades.
OrderItem response shape. Supports offset and cursor-based pagination.
Query Parameters
Response Fields
Examples
Response
{orders, has_more, next_cursor, total_hint}. total_hint
is an approximate count of matching orders for progress display — treat it
as a hint, not an exact total, and rely on has_more / next_cursor to
iterate.
Cancel Order
PENDING orders can be cancelled.
Response
- BUY orders: Reserved cash is returned to your balance
- SELL orders: Reserved shares are returned to your position
Cancel All Orders
POST is
the canonical verb; DELETE is a back-compat alias kept live for SDKs that
adopted the earlier shape (it returns X-Deprecation / Sunset headers).
canceled is a list of
order-id strings, not_canceled maps each skipped order-id to the reason:
Next Steps
- Batch Orders — Place multiple orders at once
- Trade History — View filled orders