Retrieve historical orderbook snapshots for a Polymarket market. Each snapshot shows the full order depth at a point in time.
What you get:
Important: This endpoint requires the condition_id (hex string starting with 0x), NOT the standard poly_id. Get the condition_id from the market details endpoint first.
Use cases:
Your API key (get one from the test-key endpoint above)
Polymarket condition ID (hex string). This is different from the standard poly_id - it's the long identifier starting with '0x' that uniquely identifies a market condition.
Maximum number of snapshots to return (default: 10 in docs, no max limit)
Orderbook snapshots
Token identifier for this orderbook side
Outcome label for this token (e.g., Yes, No, or a named outcome)
Array of 1001 values representing buy quantities at $0.000-$1.000 in $0.001 increments
Array of 1001 values representing sell quantities at $0.000-$1.000 in $0.001 increments