core icon indicating copy to clipboard operation
core copied to clipboard

Fallback for token rates api query on contracts to coin ids.

Open tmashuang opened this issue 4 years ago • 0 comments

Describe the bug Currently we query ethereum token contract addresses for the token rates, but certain tokens do not have conversion rates through the token_price/ethereum?contract_addresses rather they are in a different route simple/price?ids. Example token is LTO.

LTO contract address Etherscan. Coingecko ethereum token contract call (no conversion). But Coingecko LTO simple/price?ids=lto-network

Steps to reproduce (REQUIRED)

  1. Add the LTO token
  2. See no fiat conversion rate.

Expected behavior Have a fallback for token queries where it might be in a different route.

Additional context (Error Messages, etc.) This might require storing the values of these specific tokens and matching then on the /coins/list.

tmashuang avatar Mar 24 '21 19:03 tmashuang