Get Prediction Spread History
Market Data
Get Prediction Spread History
Get historical bid/ask spread evolution for a specific outcome. This is a time-series of spread data, not a live order book (see Market Order Book for live bids/asks).
GET
Get Prediction Spread History
Query Parameters
The prediction market platform (e.g.,
polymarket).The outcome token ID.
Sampling period. Possible values:
1m, 5m, 15m, 1h, 4h, 1d.Maximum number of data points to return (1 to 500).
Number of records to skip for pagination.
Response
Array of orderbook depth snapshots.
Pagination metadata.
Server hostname that handled the request.
Time in milliseconds the request took to process.
Usage Example
Example Response
Query Parameters
Prediction market platform. Today only polymarket is supported; any other value returns 400.
Available options:
polymarket Example:
"polymarket"
Polymarket outcome / token ID — uint256 decimal string (the ERC-1155 token id of the YES/NO/etc. side).
Pattern:
^[0-9]+$Example:
"59855952379545476461266875939089074481171378466995213858930892770855011813551"
Candle resolution.
Available options:
1m, 5m, 15m, 1h, 4h, 1d Page size (1-500).
Required range:
1 <= x <= 500Pagination offset.
Required range:
x >= 0Response
200 - application/json
Spread history