CoinGecko
Cryptocurrency prices, market data and historical series.
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.
- Тип: stringidобязательно
Platform ID.
- Тип: stringcontract
_address обязательноContract address.
- Тип: stringvs
_currency обязательноTarget currency for price (e.g.,
usd,eur,btc). See/simple/supported_vs_currencies. - Тип: stringdaysобязательно
Data up to N days ago. Accepts
1,7,14,30,90,180,365, ormax. - Тип: stringprecision
fullor a value from0to18to specify decimal places for currency price values.
- Тип: object · CoinGeckoMarketChart200
Same shape as
/coins/{id}/market_chart.- Тип: array array number[][]market
_caps - Тип: array array number[][]prices
- Тип: array array number[][]total
_volumes - Тип: anythingproperty
Name
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.
curl 'https://openapi.felo.ai/v1/beta/coingecko/coins/ethereum/contract/{contract_address}/market_chart?vs_currency=usd&days=7' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"prices": [
[
1
]
],
"market_caps": [
[
1
]
],
"total_volumes": [
[
1
]
],
"additionalProperty": "anything"
}