Candle Chart Data
Endpoint
GET /v1/tokens/candle-chart?tokenId=<TOKEN_ID>&days=<DAYS>&interval=<INTERVAL>
Description
This endpoint returns data for a given token that can be used to create a candlestick chart.
Query String Parameters
tokenId (required): A string in the format <TOKEN_CONTRACT_ADDRESS>:<NETWORK_ID> that identifies the token to look up.
days (required): An integer between 1 and 90, inclusive, that specifies the number of days of data to include in the response.
interval (required): The interval at which you want the data points to be grouped in minutes. Accepted values are 5, 15, 30, and 60.
Headers
x-api-key (required): A valid API key.
Example
Response
Response Object
h
: The highest price over the interval.l
: The lowest price over the interval.o
: The opening price for the interval (first data point).c
: The closing price for the interval (last data point).v
: The volume of the token over the interval.
Response Codes
200
: Success. Returns the USD price for the given token.400
: Bad Request. The tokenId, interval, or days query string parameter is not provided or days is greater than 90 or less than 1.403: Forbidden. The x-api-key header is not provided or is invalid.
404
: Not Found. No price updates found within the given time range
Last updated