core
core copied to clipboard
Fallback for token rates api query on contracts to coin ids.
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)
- Add the LTO token
- 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.