Skip to content
Fourohtwo

Retrieve token OHLCV candle data

api.nansen.ai/api/v1/tgm/token-ohlcv

Retrieve token OHLCV candle data

SolanaAnswering
POSThttps://api.nansen.ai/api/v1/tgm/token-ohlcv

Uptime100% of 2 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://api.nansen.ai/api/v1/tgm/token-ohlcv" \
  -d '{"chain":"ethereum","timeframe":"1h","token_address":"0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9","token_addresses":["0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9","0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"]}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "chain": "ethereum",
  "timeframe": "1h",
  "token_address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
  "token_addresses": [
    "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
    "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"
  ]
}