Markets
Timeseries Data
The CLOB provides detailed price history for each traded token.
HTTP REQUEST
GET /<clob-endpoint>/prices-history
Query Parameters
Name | Type | Description |
---|---|---|
market | number | the CLOB token id for which to fetch price history |
startTs | number | the start time, a unix timestamp in UTC |
endTs | number | the end time, a unix timestamp in UTC |
interval | string | a string representing a duration ending at the current time |
fidelity | number | the resolution of the data, in minutes |
The query parameters startTs
/endTs
are mutually exclusive to interval
. The options for interval
are:
- 1m: 1 month
- 1w: 1 week
- 1d: 1 day
- 6h: 6 hours
- 1h: 1 hour
- max: max range
Example Response Format
Name | Type | Description |
---|---|---|
history | TimeseriesPoint[] | list of timestamp/price pairs |
A TimeseriesPoint
object is of the form:
Name | Type | Description |
---|---|---|
t | number | utc timestamp |
p | number | price |