Felo API PlatformFelo API Platform
All CoinGecko endpoints
v0.2.0-beta
OpenAPI 3.1.0

Coin Historical Chart

Server:https://openapi.felo.ai
Client Libraries

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.

Pricing reference

  • Metering: Plan resource units.
  • Reference request estimate: USD 0.008.
  • Unit cost basis: USD 0.0.
  • Resource unit: provider_credit.
  • Cost bases do not establish the final customer price, including when zero.

Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.

Path Parameters
  • id
    Type: string
    required

    Coin ID. *refers to /coins/list.

Query Parameters
  • days
    Type: string
    required

    Data up to number of days ago. You may use any integer or max for number of days.

  • interval
    Type: string enum

    Data interval, leave empty for auto granularity.

    values
    • 1m
    • 5m
    • hourly
    • daily
  • precision
    Type: string enum

    Decimal place for currency price value.

    values
    • full
    • 0
    • 1
    • 2
    • 3
  • vs_currency
    Type: string
    required

    Target currency of market data. *refers to /simple/supported_vs_currencies.

Responses
  • 200
    Type: object · Response860C3Ae68Ea5_CoinsMarketChart

    Coin historical chart data

    • market_caps
      Type: array array number[][]
      required

      Market cap data points as [timestamp, market_cap] pairs

    • prices
      Type: array array number[][]
      required

      Price data points as [timestamp, price] pairs

    • total_volumes
      Type: array array number[][]
      required

      Total volume data points as [timestamp, volume] pairs

    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

    Error response; upstream passthrough responses may use provider formats

    application/json
Request Example for get/v1/beta/coingecko/coins/{id}/market_chart
curl 'https://openapi.felo.ai/v1/beta/coingecko/coins/bitcoin/market_chart?days=1&vs_currency=usd' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "prices": [
    [
      1779027899041,
      77953.82550382407
    ],
    [
      1779028199661,
      78052.87543398788
    ]
  ],
  "market_caps": [
    [
      1779027899041,
      1560631481361.8042
    ],
    [
      1779028199661,
      1562027330524.267
    ]
  ],
  "total_volumes": [
    [
      1779027899041,
      18688431751.857048
    ],
    [
      1779028199661,
      18974828816.446976
    ]
  ]
}
Coin Historical Chart

Need help?