Get historical token prices - Quote currency not supported

Description: When I try to use the price history endpoint of a token, I get an error that a parameter is not supported.

Reproduction step:

  1. Go to endpoints: Get historical token prices
  2. Fill in the following information (see below) and run the query :
    • contract address: 0xBd3531dA5CF5857e7CfAA92426877b022e612cf8

Expected result: Return a lsit of historical prices for a specific token

Real Result : Error : Quote currency ‘:QUOTE_CURRENCY’ not supported.

Workaround : Not direct workaround on this doc

First observation: the real query executed by the doc is https://api.covalenthq.com/v1/pricing/historical_by_addresses_v2/1/:quote_currency/0xBd3531dA5CF5857e7CfAA92426877b022e612cf8/?quote-currency=USD&format=JSON&key=ckey_docs
and should be https://api.covalenthq.com/v1/pricing/historical_by_addresses_v2/1/USD/0xBd3531dA5CF5857e7CfAA92426877b022e612cf8/?format=JSON&key=ckey_docs

1 Like

It’s working now :slight_smile:

1 Like