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.GTD and post-only are live on both endpoints (since 2026-06-16, see
Placing Orders).
order_type=GTD on
/v1/clob/order (time_in_force=GTD on /v1/orders) is a true
Good-Til-Date: the order carries a unix-seconds expiration, the matching
engine skips and auto-cancels it once that timestamp passes (the
cancelled row carries cancelled_reason: "gtd_expired"), and an
expiration that is missing or already in the past is rejected at
placement with 400 INVALID_ORDER_EXPIRATION. Polymarket’s postOnly
(post_only on /v1/orders) makes a GTC/GTD limit reject-if-marketable:
an order that would cross the book is refused with
400 INVALID_POST_ONLY_ORDER instead of filling.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.
Get a Single Order
GET /v1/orders.
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