CoinGecko
Cryptocurrency prices, market data and historical series.
Coin Price by Token Address
Price lookup keyed by on-chain contract address rather than CoinGecko id. id is the asset platform, contract_addresses a comma-separated list of token addresses, vs_currencies the quote currency. Returns a map keyed by lowercase contract address whose field names are built from the quote currency — 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 when you hold an address and no id. For the token's full profile use get_coingecko_token_data; if you already have the CoinGecko id use get_coingecko_simple_price.
- 類型: stringid必填
Platform ID (e.g.,
ethereum,binance-smart-chain,polygon-pos).
- 類型: stringcontract
_addresses 必填Comma-separated contract addresses.
- 類型: stringvs
_currencies 必填Comma-separated target currencies.
- 類型: booleaninclude
_market _cap - 類型: booleaninclude
_24hr _vol - 類型: booleaninclude
_24hr _change - 類型: booleaninclude
_last _updated _at - 類型: stringprecision
fullor a value from0to18to specify decimal places for currency price values.
- 類型: object · CoinGeckoSimplePriceMap200
Map keyed by contract address.
- 類型: 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/token_price/ethereum?contract_addresses=0xdAC17F958D2ee523a2206206994597C13D831ec7&vs_currencies=usd' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"additionalProperty": {
"additionalProperty": "anything"
}
}