CoinGecko
Cryptocurrency prices, market data and historical series.
Simple Price
Field names are built from the quote currency — with vs_currencies set to usd you get usd, plus usd_market_cap, usd_24h_vol, usd_24h_change and last_updated_at when the matching include_market_cap, include_24hr_vol, include_24hr_change and include_last_updated_at flags are set. Use it whenever the ids are already known and only current numbers are needed. For rank, supply or all-time-high data use get_coingecko_coins_markets; if you hold a contract address rather than an id use get_coingecko_simple_token_price_id.
- 类型: stringids必填
Comma-separated coin IDs.
- 类型: stringvs
_currencies 必填Comma-separated target currencies.
- 类型: booleaninclude
_market _cap - 类型: booleaninclude
_24hr _vol - 类型: booleaninclude
_24hr _change - 类型: booleaninclude
_last _updated _at - 类型: stringprecision
- 类型: object · CoinGeckoSimplePriceMap200
Map keyed by coin id.
- 类型: objectproperty
Name - property类型: anything
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/simple/price?ids=bitcoin%2Cethereum&vs_currencies=usd%2Ceur' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"bitcoin": {
"usd": 67234.12,
"eur": 62019.45
},
"ethereum": {
"usd": 3412,
"eur": 3147.8
}
}