資料 API / CoinGecko / Coins
Coin Historical Chart by Contract
Historical series for a token identified by contract address, over a trailing window set by days. id is the asset platform, contract_address the token. Returns prices, market_caps and total_volumes as timestamp-and-value pairs, with timestamps in milliseconds — the same shape as get_coingecko_coins_id_market_chart. Use it when you have an address rather than a CoinGecko id. For an explicit start and end use get_coingecko_token_market_chart_range.
參數
路徑
idstring必填Platform ID.
contract_addressstring必填Contract address.
查詢
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, ormax.precisionstring選填fullor a value from0to18to specify decimal places for currency price values.
請求範例
curl -G "https://openapi.felo.ai/v1/beta/coingecko/coins/{id}/contract/{contract_address}/market_chart" \
--data-urlencode "vs_currency=<string>" \
--data-urlencode "days=<string>" \
-H "Authorization: Bearer $FELO_API_KEY"回應
回應欄位
pricesnumber[][]選填market_capsnumber[][]選填total_volumesnumber[][]選填