Felo API PlatformFelo API Platform

数据 API / CoinGecko / Simple

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.

参数

查询

  • idsstring必填

    Comma-separated coin IDs.

  • vs_currenciesstring必填

    Comma-separated target currencies.

  • include_market_capboolean可选
  • include_24hr_volboolean可选
  • include_24hr_changeboolean可选
  • include_last_updated_atboolean可选
  • precisionstring可选

请求示例

curl -G "https://openapi.felo.ai/v1/beta/coingecko/simple/price" \
  --data-urlencode "ids=<string>" \
  --data-urlencode "vs_currencies=<string>" \
  -H "Authorization: Bearer $FELO_API_KEY"

响应

响应示例

{
  "bitcoin": {
    "usd": 67234.12,
    "eur": 62019.45
  },
  "ethereum": {
    "usd": 3412,
    "eur": 3147.8
  }
}