v1

latestOpenAPI 3.0.02026-07-2471143147.5 KB
Orders

Get one order

Fetch a single order by composite order ID. Faster than GET /v1/orders for one-order lookups.

get/v1/orders/by-id/{order_id}

Path parameters

order_idstring required

Composite order ID (hex 0x..., 24 bytes = WideOrderID + BlockNumber + LogIndex). Required. Globally unique on its own — the embedded (block_number, log_index) pair pins exactly one order, so no market/account scope is needed.

Query parameters

market_idstring int64

Optional market hint. When provided, the in-memory lookup probes only this market's index (O(1)); otherwise it scans all markets. Does not affect the DB fallback (the composite order_id is globally unique).

Response

A successful response.