The CLOB provides detailed price history for each traded token.

HTTP REQUEST

GET /<clob-endpoint>/prices-history

Query Parameters

NameTypeDescription
marketnumberthe CLOB token id for which to fetch price history
startTsnumberthe start time, a unix timestamp in UTC
endTsnumberthe end time, a unix timestamp in UTC
intervalstringa string representing a duration ending at the current time
fidelitynumberthe 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

NameTypeDescription
historyTimeseriesPoint[]list of timestamp/price pairs

A TimeseriesPoint object is of the form:

NameTypeDescription
tnumberutc timestamp
pnumberprice