Felo API PlatformFelo API Platform

データ API / CoinGecko / Coins

Coin Market Chart Range by Contract

Historical series between two explicit points in time for a token identified by contract address. id is the asset platform and contract_address the token; from and to are Unix timestamps in seconds while response timestamps are in milliseconds. Returns prices, market_caps and total_volumes as timestamp-and-value pairs. Use it when you have an address and a fixed window. For a trailing window use get_coingecko_token_market_chart; if you hold a CoinGecko id rather than an address use get_coingecko_coins_id_market_chart_range.

パラメータ

パス

  • idstring必須

    Asset platform ID (e.g., ethereum).

  • contract_addressstring必須

    Token contract address.

クエリ

  • vs_currencystring必須

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

  • frominteger必須

    Start UNIX timestamp (seconds).

  • tointeger必須

    End UNIX timestamp (seconds).

  • 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}/contract/{contract_address}/market_chart/range" \
  --data-urlencode "vs_currency=<string>" \
  --data-urlencode "from=<integer>" \
  --data-urlencode "to=<integer>" \
  -H "Authorization: Bearer $FELO_API_KEY"

レスポンス

レスポンスのフィールド

  • pricesnumber[][]任意
  • market_capsnumber[][]任意
  • total_volumesnumber[][]任意