Data API / CoinGecko / Coins
Coins Markets
A ranked market table covering many coins in one call: one row per coin with current_price, market_cap, market_cap_rank, total_volume, high_24h, low_24h, price_change_percentage_24h, circulating_supply, total_supply, max_supply, ath and atl with their dates, and image. Page with per_page and page, sort with order (market cap, volume or id, ascending or descending), and narrow with ids or category. Passing price_change_percentage adds a matching price_change_percentage_24h_in_currency field. Use it for leaderboards and segment scans. For the price of a few known coins get_coingecko_simple_price is far lighter; for one coin in full use get_coingecko_coins_id.
Параметры
запрос
vs_currencystringОбязательныйTarget currency for price (e.g.,
usd,eur,btc). See/simple/supported_vs_currencies.idsstringНеобязательныйComma-separated CoinGecko coin IDs.
categorystringНеобязательныйFilter by category (see
/coins/categories/list).orderstringНеобязательныйДопустимые значения: market_cap_desc · market_cap_asc · volume_desc · volume_asc · id_asc · id_desc
per_pageintegerНеобязательныйpageintegerНеобязательныйsparklinebooleanНеобязательныйprice_change_percentagestringНеобязательныйComma-separated windows:
1h,24h,7d,14d,30d,200d,1y.localestringНеобязательныйResponse language locale. Official values include
en,zh,zh-tw, and other supported CoinGecko locales.precisionstringНеобязательныйfullor a value from0to18to specify decimal places for currency price values.include_rehypothecatedbooleanНеобязательныйInclude rehypothecated tokens in market data when supported by CoinGecko.
Пример запроса
curl -G "https://openapi.felo.ai/v1/beta/coingecko/coins/markets" \
--data-urlencode "vs_currency=<string>" \
-H "Authorization: Bearer $FELO_API_KEY"Ответ
В опубликованной спецификации ответ этого эндпоинта не описан.