Skip to main content
GET
Get a single order by ID (polysim-shape row).

Authorizations

X-API-Key
string
header
required

Issue from /v1/keys (or admin-issued for enterprise tier).

Headers

X-API-Key
string | null

Your PolySimulator API key

POLY_API_KEY
string | null

Polymarket-CLOB-compat alias for X-API-Key (underscore form). SDK clients ported from Polymarket can authenticate without changing header names. X-API-Key takes precedence when both are provided.

Poly-API-Key
string | null

PM-CLOB-compat dashed-form alias for X-API-Key. Same value semantics as POLY_API_KEY but with HTTP-conventional dash separators. Both spellings are accepted end-to-end.

authorization
string | null

PM-CLOB-compat: Authorization: Bearer ps_live_... (or ps_test_...) is accepted as an alias for X-API-Key so py-clob-client and other ported SDKs authenticate without header name changes. Bearer JWTs are NOT accepted here — use the dashboard-auth endpoints for those.

Path Parameters

order_id
integer
required

Query Parameters

source
string | null

Disambiguate the table lookup: pending forces the PendingOrder table (limit orders), filled forces the Order table (fills). Use the row's response source to fetch that exact row. Default None tries PendingOrder first, falls back to Order on miss.

wallet_id
integer | null

Optional wallet scope — when supplied, only returns the row if it belongs to this wallet. Mirrors the list_orders wallet_id pattern so per-wallet pollers stay consistent.

Response

Successful Response

Compact order representation for list and single-order endpoints.

order_id
integer
required

ID in the table identified by source. Fetch this exact row with GET /v1/orders/{order_id}?source={source}.

source
enum<string>
required

Table containing order_id: pending = PendingOrder, filled = Order. Pass this value as ?source= when fetching the row by ID. This identifies the table, regardless of the row's status.

Available options:
pending,
filled
market_id
string
required
side
string
required
outcome
string
required
order_type
string
required
limit_price
string
required
quantity
string
required
time_in_force
string
required
status
string
required
parent_order_id
integer | null

Verified parent PendingOrder ID for a partial fill. The parent must match the user, requested wallet scope, market_id, and client_order_id prefix before the :p_ suffix. Fetch the parent with ?source=pending. Null for pending rows or when no matching parent exists.

client_order_id
string | null
magic
integer | null
magic_label
string | null
created_at
string | null
filled_at
string | null
fill_price
string | null
cancelled_at
string | null
cancelled_reason
string | null
rejected_reason
string | null

Why the order was rejected, as a stable machine tag — for example INSUFFICIENT_BALANCE, SLIPPAGE_EXCEEDED, BOOK_WALK_FAILED, MARKET_PRICE_UNAVAILABLE or STALE_OR_MISMATCHED_BOOK. Set only on a rejected order; null on every other status.

hold_reason
string | null