You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed inconsistent token price for IOTX (and possibly for other tokens) when using the CryptoCompare API. The returned price via the direct IOTX/USD trading pair is outdated, resulting in incorrect token price information being displayed in MetaMask. The current API at the time of opening the issue returns a price of $0.056, whereas the accurate price should be $0.045.
Cause
The issue arises because the CryptoCompare API's direct IOTX/USD trading pair is not up-to-date. The returned price is sourced from a limited set of markets that no longer reflect current market data. This leads to discrepancies in the displayed price.
Proposed Solutions
Use the CADLI Index: (recommended by CCData team after reaching out to their support team)
To resolve the outdated price issue, we can switch to CryptoCompare's new CADLI index. CADLI consolidates all available markets for a given cryptocurrency and returns a 24-hour volume-weighted average USD price.
Update the API Call:
Instead of querying the direct pairs, use the following API endpoint to get the updated token price:
Issue
We noticed inconsistent token price for IOTX (and possibly for other tokens) when using the CryptoCompare API. The returned price via the direct IOTX/USD trading pair is outdated, resulting in incorrect token price information being displayed in MetaMask. The current API at the time of opening the issue returns a price of $0.056, whereas the accurate price should be $0.045.
Cause
The issue arises because the CryptoCompare API's direct IOTX/USD trading pair is not up-to-date. The returned price is sourced from a limited set of markets that no longer reflect current market data. This leads to discrepancies in the displayed price.
Proposed Solutions
Use the CADLI Index: (recommended by CCData team after reaching out to their support team)
To resolve the outdated price issue, we can switch to CryptoCompare's new CADLI index. CADLI consolidates all available markets for a given cryptocurrency and returns a 24-hour volume-weighted average USD price.
Update the API Call:
Instead of querying the direct pairs, use the following API endpoint to get the updated token price:
which also supports fetching prices directly for multiple tokens:
The text was updated successfully, but these errors were encountered: