cURL
curl --request GET \ --url https://api-testnet.context.markets/v2/markets/{id}/orderbook
{ "marketId": "<string>", "bids": [ { "price": 123, "size": 123 } ], "asks": [ { "price": 123, "size": 123 } ], "timestamp": "<string>" }
Returns the order book depth with aggregated price levels in cents.
Market ID (hash) or slug
Number of price levels to return per side
1 <= x <= 100
Outcome index (0 = yes, 1 = no)
0 <= x <= 1
Orderbook snapshot
Show child attributes