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.
Pricing reference
- Metering: Plan resource units.
- Reference request estimate: USD 0.008.
- Unit cost basis: USD 0.0.
- Resource unit:
provider_credit. - Cost bases do not establish the final customer price, including when zero.
Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.
- Type: stringidrequired
Coin ID. *refers to
/coins/list.
- Type: stringfromrequired
Starting date in ISO date string (
YYYY-MM-DDorYYYY-MM-DDTHH:MM) or UNIX timestamp. Use ISO date string for best compatibility. - Type: string enuminterval
Data interval, leave empty for auto granularity.
values- 1m
- 5m
- hourly
- daily
- Type: string enumprecision
Decimal place for currency price value.
values- full
- 0
- 1
- 2
- 3
- Type: stringtorequired
Ending date in ISO date string (
YYYY-MM-DDorYYYY-MM-DDTHH:MM) or UNIX timestamp. Use ISO date string for best compatibility. - Type: stringvs
_currency requiredTarget currency of market data. *refers to
/simple/supported_vs_currencies.
- Type: object · Response860C3Ae68Ea5_CoinsMarketChart200
Coin historical chart data within time range
- Type: array array number[][]market
_caps requiredMarket cap data points as [timestamp, market_cap] pairs
- Type: array array number[][]pricesrequired
Price data points as [timestamp, price] pairs
- Type: array array number[][]total
_volumes requiredTotal volume data points as [timestamp, volume] pairs
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
Error response; upstream passthrough responses may use provider formats
application/json
curl 'https://openapi.felo.ai/v1/beta/coingecko/coins/bitcoin/market_chart/range?from=2025-12-22&to=2025-12-31&vs_currency=usd' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"prices": [
[
1779027899041,
77953.82550382407
],
[
1779028199661,
78052.87543398788
]
],
"market_caps": [
[
1779027899041,
1560631481361.8042
],
[
1779028199661,
1562027330524.267
]
],
"total_volumes": [
[
1779027899041,
18688431751.857048
],
[
1779028199661,
18974828816.446976
]
]
}