/{chain}/price/{token}/history

Returns historical token prices over the requested window.

The interval parameter controls price grouping:

  • raw: every price observation, limited to 1000 points
  • hourly: OHLC data grouped by hour
  • daily: OHLC data grouped by day (default)

For hourly and daily, the window cannot exceed 168 buckets: 168 days at the daily interval or 7 days at the hourly interval.

When startTimestamp is omitted the window defaults to the last 30 days at the daily interval, the last 48 hours at the hourly one, and the last 24 hours for raw. Pass an explicit window to widen it.

Only cc (Canton Coin) is supported. The token identifier is case insensitive.

Path Params
string
required
Defaults to canton

Canton chain name. Use a name returned by GET /chains.

string
required
Defaults to cc

Token identifier to price. Only cc is supported.

Query Params
int64

Start of the requested time window, as Unix seconds. Optional.

int64

End of the requested time window, as Unix seconds. Optional.

string
Defaults to daily

Price grouping interval: raw, hourly, or daily. Default is daily.

Headers
string
required
Defaults to demokey

API Key for Canton API. To generate an API Key, visit https://app.noves.fi

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json