Open mrcolak opened 3 years ago
I'm just confirming this. I just checked half a dozen coins or so and they were all off significantly (~9%).
It's seems are not real time:
Results are cached for 5 minutes (or 300 seconds).
It's seems are not real time:
Results are cached for 5 minutes (or 300 seconds).
Yes, API already tells you the exact timestamp. Also sometimes results are cached for up to 30-45 minutes. But thats not the issue here.
The prices which API shows for some tokens were from days ago. For example, the price went up from ~1 to ~10 two days ago. But API still shows ~1.
However, the issue seems to be solved after this ticket. Maybe someone fixed the issue but forgot to reply.
Please can someone fix the problems with the cache. The timestamps shows the prices are taking as long as an hour to update, and not every 5 minutes as described in the documentation. Thanks.
Same problem here, the prices are static between calls. I have checked pancakeswap for the same token and the whole site seems to be having problems. If you check a token the trades are from 14 hours ago.
Looks like the problem is being delt with -
I came back to share an alternative to getting prices. Just swap the token.
Docs: https://0x.org/docs/api
I hope it helps someone else.
I came back to share an alternative to getting prices. Just swap the token.
Docs: https://0x.org/docs/api
I hope it helps someone else.
Brilliant, thank you.
I came back to share an alternative to getting prices. Just swap the token.
Docs: https://0x.org/docs/api
I hope it helps someone else.
Awesome resource
I came back to share an alternative to getting prices. Just swap the token.
Docs: https://0x.org/docs/api
I hope it helps someone else.
Excellent alternative!
Hello
Lately I noticed that the difference between frontend and APIs are getting bigger.
Pancakeswap V2 Frontend 0.0000000992146
https://api.pancakeswap.info/api/v2/tokens 0.0000000219983
https://api.pancakeswap.info/api/v2/tokens/0x4A824eE819955A7D769e03fe36f9E0C3Bd3Aa60b 0.0000000343884
This coin is just an example, lots of coins has this issue right now. Even though API says prices updates 5-10 minutes ago, its not even close to the actual price