CoinGeckoCrypto Market DataMarket data

Crypto OHLC candles by coin id over N days

coingecko.coins.ohlc

Open/high/low/close candles over N days (30-minutely under 2 days, 4-hourly to 30, daily beyond)

Price
$0.00029/callAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
Aug 15, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/coingecko.coins.ohlc?days=1&coin_id=bitcoin&vs_currency=usdPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Query parameters
daysstringRequired1 | 7 | 14 | 30 | 90 | 180 | 3651
coin_idstringRequiredpath parameterbitcoin
vs_currencystringRequiredusd
  • Query parameters
  • daysstringRequired

    1 | 7 | 14 | 30 | 90 | 180 | 365

    Example: 1

  • coin_idstringRequired

    path parameter

    Example: bitcoin

  • vs_currencystringRequired

    Example: usd

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/coingecko.coins.ohlc?days=1&coin_id=bitcoin&vs_currency=usd' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00029/call, including the service fee.