Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Coin Historical Chart

Сервер:https://openapi.felo.ai
Клиентские библиотеки

CoinGecko

​

Cryptocurrency prices, market data and historical series.

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.

Параметры пути
  • id
    Тип: string
    обязательно

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

Query-параметры
  • vs_currency
    Тип: string
    обязательно

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

  • days
    Тип: string
    обязательно

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

  • interval
    Тип: string enum

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

    значения
    • daily
    • hourly
  • precision
    Тип: string

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

Ответы
  • 200
    Тип: object · CoinGeckoMarketChart

    Three time-series arrays.

    • market_caps
      Тип: array array number[][]
    • prices
      Тип: array array number[][]
    • total_volumes
      Тип: array array number[][]
    • propertyName
      Тип: anything
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/coingecko/coins/{id}/market_chart
curl 'https://openapi.felo.ai/v1/beta/coingecko/coins/bitcoin/market_chart?vs_currency=usd&days=7' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "prices": [
    [
      1713398400000,
      67234.12
    ],
    [
      1713402000000,
      67301.55
    ]
  ],
  "market_caps": [
    [
      1713398400000,
      1321498765432
    ]
  ],
  "total_volumes": [
    [
      1713398400000,
      25679876543
    ]
  ]
}
Coin Historical Chart