Candles API
Open, high, low, close and volume candles for a token's busiest pair, newest first.
You send
- mint The token's address (its mint on Solana, its contract elsewhere)
+ 3 optional: interval, limit, chain
You get back
JSON with these fields, inside data:
pair, pair_dex, interval, candles, mint, chain, …
Example and every field explained ↓It costs
$0.002 / call
The first 100 priced calls a day are free on every key.
- Freshness
- up to 1 min old
- Auth
- Bearer key
- Chains
- 80 chains
curl "https://api.crypto2api.com/v1/crypto/token/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263/candles?interval=1h&limit=100&chain=solana" \
-H "Authorization: Bearer c2a_your_key"Swap in your key for c2a_your_key. No key yet? curl -X POST https://api.crypto2api.com/v1/keys makes one, free, no sign-up, or just press Run below.
Used forPrice & coin data
Works on 80 chains. Pass chain=; it defaults to solana. Pick one in the playground and the cURL, JavaScript, Python and MCP snippets all follow it.
- solana
- ethereum
- base
- bsc
- arbitrum
- polygon
- avalanche
- optimism
- hyperevm
- monad
- abstract
- sonic
- berachain
- sei
- linea
- zksync
- mantle
- unichain
- ronin
- cronos
- worldchain
- scroll
- celo
- pulsechain
- ink
- soneium
- metis
- manta
- katana
- plasma
- flowevm
- kava
- tron
- sui
- ton
- aptos
- near
- starknet
- xrpl
- injective
- hyperliquid
- robinhood
- elysium
- arc
- megaeth
- fantom
- opbnb
- zora
- mode
- taiko
- lisk
- fraxtal
- apechain
- story
- sophon
- gnosis
- core
- xlayer
- hedera
- polygonzkevm
- immutable
- kaia
- aurora
- boba
- shibarium
- rootstock
- bitlayer
- merlin
- etherlink
- xrplevm
- vana
- bob
- shape
- beam
- memecore
- stable
- tempo
- stacks
- cardano
- stellar
Parameters
Required first. Each example is a value that works.
- mintrequiredpath · string
The token's address (its mint on Solana, its contract elsewhere).
e.g. DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
- intervaloptionalquery · string
Candle width: 1m, 5m, 1h or 1d.
e.g. 1h
default 1h
- limitoptionalquery · number
How many candles, up to 500.
e.g. 100
default 100
- chainoptionalquery · string
Which chain: one of the 80 listed above. Default solana.
e.g. solana
default solana
Response
Every answer is { data, cost_usd, balance_usd, cached, request_id }. Below is a real data from this endpoint, read when the page was built.
Example data
Key fields
- pairstring
- The address of the coin's main trading pool.
- pair_dexstring
- Pair dex.
- intervalstring
- The candle size.
- candlesarray
- The candles, newest first: open, high, low, close, volume.
- mintstring
- The coin's mint address (its contract address on Solana).
- chainstring
- Which chain this answer is for.
- sourcestring
- Where the numbers were read from.
The wrapper every answer comes in
- data
- The answer itself: the example above.
- cost_usd
- What this one call was charged — 0 while you are inside the free 100 a day.
- balance_usd
- What is left on the key after it.
- cached
- true means another caller asked first, so the answer may be up to 1 min old.
- request_id
- Quote this if you report something; it is on your Activity page too.
A fact the API could not read is left out or named, never estimated. When an upstream is down you get a 503 with a stable code you can branch on, not a half-filled answer.
Try it
A real call against the live API. The first 100 priced calls a day are free.
Response
What this example answered when the page was built, shortened. Run it for a live answer.
Copy it
Runs as-is, with your key in place of c2a_your_key. It follows the boxes above, on Solana.
curl "https://api.crypto2api.com/v1/crypto/token/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263/candles?interval=1h&limit=100&chain=solana" \
-H "Authorization: Bearer c2a_your_key"