Room ID:
Endpoint:
Rate: 0.001 credits per message
polymarket_order_book Endpoint:
wss://api.struct.to/ws Rate: 0.001 credits per message
condition_ids and position_ids must not exceed 500.
Subscribe
At least one ofcondition_ids or position_ids is required. Without any filters, the room will not emit events. You can combine both filters to narrow the stream.
Filters
Example
Response
Events
order_book_update
bids and asks is a price level object:
bids are sorted best-first (highest price first); asks are sorted best-first (lowest price first).
order_book_batch
In firehose mode (subscribe_all: true), snapshots are conflated into order_book_batch envelopes emitted every 50ms instead of a message per book change. count is the number of snapshots in the batch, and each entry in data has the same shape as the order_book_update data object.