Felo API PlatformFelo API Platform

데이터 API / CoinGecko / Coins

Coin Historical Chart

Historical series for one coin over a trailing window set by days, returned as three parallel arrays: prices, market_caps and total_volumes. Each entry is a two-element pair of timestamp and value, and the timestamp is in milliseconds. Granularity follows days automatically, or force it with interval (daily or hourly). Use it to chart a trend ending now. For an explicit start and end use get_coingecko_coins_id_market_chart_range; for candlesticks use get_coingecko_coins_id_ohlc; for one specific past day use get_coingecko_coins_id_history.

파라미터

경로

  • idstring필수

    CoinGecko coin ID (e.g., bitcoin, ethereum). Get the list via /coins/list.

쿼리

  • vs_currencystring필수

    Target currency for price (e.g., usd, eur, btc). See /simple/supported_vs_currencies.

  • daysstring필수

    Data up to N days ago. Accepts 1, 7, 14, 30, 90, 180, 365, or max.

  • intervalstring선택

    허용 값: daily · hourly

    Data interval. CoinGecko supports daily; hourly is also available for supported ranges.

  • precisionstring선택

    full or a value from 0 to 18 to specify decimal places for currency price values.

요청 예시

curl -G "https://openapi.felo.ai/v1/beta/coingecko/coins/{id}/market_chart" \
  --data-urlencode "vs_currency=<string>" \
  --data-urlencode "days=<string>" \
  -H "Authorization: Bearer $FELO_API_KEY"

응답

응답 예시

{
  "prices": [
    [
      1713398400000,
      67234.12
    ],
    [
      1713402000000,
      67301.55
    ]
  ],
  "market_caps": [
    [
      1713398400000,
      1321498765432
    ]
  ],
  "total_volumes": [
    [
      1713398400000,
      25679876543
    ]
  ]
}

응답 필드

  • pricesnumber[][]선택
  • market_capsnumber[][]선택
  • total_volumesnumber[][]선택