Skip to navigation

Token OHLCV Chart by Token Address

To get the OHLCV chart (Open, High, Low, Close, Volume) of a token based on the provided token address on a network

Authentication

x-cg-pro-api-keystring
CoinGecko Pro API Key

Path parameters

networkstringRequiredDefaults to solana

Network ID. *refers to /onchain/networks.

token_addressstringRequiredDefaults to So11111111111111111111111111111111111111112
Token contract address.
timeframeenumRequiredDefaults to day
Timeframe of the OHLCV chart.
Allowed values:

Query parameters

aggregatestringOptional

Time period to aggregate each OHLCV. Available values (day): 1 Available values (hour): 1, 4, 12 Available values (minute): 1, 5, 15 Available values (second): 1, 15, 30 Default value: 1

before_timestampintegerOptional

Return OHLCV data before this timestamp (integer seconds since epoch).

limitintegerOptional

Number of OHLCV results to return, maximum 1000. Default value: 100

currencyenumOptional

Return OHLCV in USD or quote token. Default: usd

Allowed values:
include_empty_intervalsbooleanOptional

Include empty intervals with no trade data. Default: false

include_inactive_sourcebooleanOptional

Include token data from inactive pools using the most recent swap. Default: false

Response

Token OHLCV chart data
dataobject
metaobject