Discussions

Ask a Question
Back to All

ankr_getTokenPriceHistory returns empty

I am getting no results for many tokens that I tried to get the historical token price

Request

{
  "jsonrpc": "2.0",
  "method": "ankr_getTokenPriceHistory",
  "params": {
    "blockchain": "eth",
    "contractAddress": "0x85F17Cf997934a597031b2E18a9aB6ebD4B9f6a4",
    "fromTimestamp": 1673164570
  },
  "id": 34234
}

REsponse:

{
    "jsonrpc": "2.0",
    "id": 34234,
    "result": {
        "quotes": []
    }
}

Kindly provide a solution for that