Coin Price by Token Addresses

Changed on

To query one or more token prices by using their token contract addresses

get/simple/token_price/{id}

Request

  • Base URL
    https://pro-api.coingecko.com/api/v3
  • Auth
    • API key in header x-cg-pro-api-key
    • or API key in query parameter x_cg_pro_api_key

Path parameters

idstring required

Asset platform's ID. *refers to /asset_platforms

Query parameters

contract_addressesstring required

Token contract addresses, comma-separated if querying more than 1 token

vs_currenciesstring required

Target currency of coins, comma-separated if querying more than 1 currency. *refers to /simple/supported_vs_currencies.

For the complete list of fiat currencies supported by this endpoint, see Fiat Currencies Support List.

include_market_capboolean

Include market capitalization. Default: false

include_24hr_volboolean

Include 24-hour trading volume. Default: false

include_24hr_changeboolean

Include 24-hour change percentage. Default: false

include_last_updated_atboolean

Include last updated price time as a UNIX timestamp. Default: false

precision'full' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18'

Decimal places for currency price value

Response

Token prices

SimplePrice required

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api tag Simple removed