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.
- 型: stringid必須
CoinGecko coin ID (e.g.,
bitcoin,ethereum). Get the list via/coins/list.
- 型: stringvs
_currency 必須Target currency for price (e.g.,
usd,eur,btc). See/simple/supported_vs_currencies. - 型: integerfrom必須
Start UNIX timestamp (seconds).
- 型: integerto必須
End UNIX timestamp (seconds).
- 型: 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.
- 型: object · CoinGeckoError401
CoinGecko plan restriction or authorization error returned by the upstream provider.
- 型: objecterror
- property型: anything
Name
- 型: objectstatus
- property型: anything
Name
- 型: anythingproperty
Name
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.
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"
}