Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0
服务器:https://openapi.felo.ai
客户端库

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.

查询参数
  • ids
    类型: string
    必填

    Comma-separated coin IDs.

  • vs_currencies
    类型: string
    必填

    Comma-separated target currencies.

  • include_market_cap
    类型: boolean
  • include_24hr_vol
    类型: boolean
  • include_24hr_change
    类型: boolean
  • include_last_updated_at
    类型: boolean
  • precision
    类型: string
响应
  • 200
    类型: object · CoinGeckoSimplePriceMap

    Map keyed by coin id.

    • propertyName
      类型: object
      • propertyName
        类型: anything
    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.

Request Example for get/v1/beta/coingecko/simple/price
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
  }
}
Simple Price