Collect Polymarket order book snapshots and recent trades

Pass markets or token IDs to the order-book actor, then collect full books and recent trades once or at repeated intervals.

Choose tokens and a collection interval

Start with the example input for polymarket-orderbook-snapshot and enter markets or token IDs. The actor returns full order books and recent trades for the requested inputs. For repeated snapshots, set an interval of N seconds and a duration of M minutes. Use a single collection to inspect current books, or repeat collection to examine the snapshots over your selected period.

Limits

Repeated snapshots capture books at collection times, so don't treat them as a record of every change between those times. Recent trades are not a guarantee of complete trading history, and current snapshots do not reconstruct earlier order books. If you need token price histories and resolutions, use polymarket-markets-history for that separate dataset. Pay-per-event pricing charges once per order-book token row with a valid book, so account for repeated collection when choosing your interval and duration.