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

Coin Market Chart Range

服务器:https://openapi.felo.ai
客户端库

CoinGecko

​

Cryptocurrency prices, market data and historical series.

Coin Market Chart Range

​

Historical series for one coin between two explicit points in time. from and to are Unix timestamps in seconds, while the timestamps inside the response are in milliseconds — the two are not the same unit, which is the usual source of empty or misaligned results. Returns prices, market_caps and total_volumes as timestamp-and-value pairs; CoinGecko picks granularity from the window length. Use it to line a series up with a known event window. For a trailing window ending now, get_coingecko_coins_id_market_chart takes a days count instead.

路径参数
  • id
    类型: string
    必填

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

查询参数
  • vs_currency
    类型: string
    必填

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

  • from
    类型: integer
    必填

    Start UNIX timestamp (seconds).

  • to
    类型: integer
    必填

    End UNIX timestamp (seconds).

  • precision
    类型: string

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

响应
  • 200
    类型: object · CoinGeckoMarketChart

    Same shape as /coins/{id}/market_chart.

    • 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
    类型: object · CoinGeckoError

    CoinGecko plan restriction or authorization error returned by the upstream provider.

    • error
      类型: object
      • propertyName
        类型: anything
    • status
      类型: object
      • propertyName
        类型: anything
    • propertyName
      类型: anything
    application/json
  • 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/range
curl 'https://openapi.felo.ai/v1/beta/coingecko/coins/bitcoin/market_chart/range?vs_currency=usd&from=1713398400&to=1713484800' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "prices": [
    [
      1
    ]
  ],
  "market_caps": [
    [
      1
    ]
  ],
  "total_volumes": [
    [
      1
    ]
  ],
  "additionalProperty": "anything"
}
Coin Market Chart Range