Logo
Covalent API Documentation

getTokenPrices

GET https://api.covalenthq.com/v1/pricing/historical_by_addresses_v2/:chainName/:quoteCurrency/:contractAddress/?from=&to=&prices-at-asc=

Returns: TokenPricesResponse

{
  "contract_decimals" : "{{INTEGER}}",
  "contract_name" : "{{STRING}}",
  "contract_ticker_symbol" : "{{STRING}}",
  "contract_address" : "{{STRING}}",
  "supports_erc" : [ "{{STRING}}" ],
  "logo_url" : "{{STRING}}",
  "update_at" : "{{DATETIME}}",
  "quote_currency" : "{{STRING}}",
  "prices" : [ {
    "contract_metadata" : {
      "contract_decimals" : "{{INTEGER}}",
      "contract_name" : "{{STRING}}",
      "contract_ticker_symbol" : "{{STRING}}",
      "contract_address" : "{{STRING}}",
      "supports_erc" : [ "{{STRING}}" ],
      "logo_url" : "{{STRING}}"
    },
    "date" : "{{DATETIME}}",
    "price" : "{{DOUBLE}}",
    "pretty_price" : "{{STRING}}"
  } ],
  "items" : [ "{{Price}}" ]
}

 

Body PARAM

Key Datatype Required Description 
from
null
to
null
prices-at-asc
null



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status



Curl
curl -X GET 'https://api.covalenthq.com/v1/pricing/historical_by_addresses_v2/:chainName/:quoteCurrency/:contractAddress/?from=&to=&prices-at-asc=?from=&to=&prices-at-asc=' -H 'Content-Type: application/json'

ENDPOINTS