Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Coin Price by Token Address

サーバー:https://openapi.felo.ai
クライアントライブラリ

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.

パスパラメーター
  • id
    型: string
    必須

    Platform ID (e.g., ethereum, binance-smart-chain, polygon-pos).

クエリパラメーター
  • contract_addresses
    型: string
    必須

    Comma-separated contract addresses.

  • 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

    full or a value from 0 to 18 to specify decimal places for currency price values.

レスポンス
  • 200
    型: object · CoinGeckoSimplePriceMap

    Map keyed by contract address.

    • 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/token_price/{id}
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"
  }
}
Coin Price by Token Address