Hey guys,
My application is reverting with getPrice() for BNB/USD, but we just sent the update data, and so was wondering if still an issue on our side or just some edge case?
Is it possible that at the time we sent the TX this was outdated maybe?
Here’s my tx: Binance Transaction Hash: 0xa68758e2d6... | BscScan
1 Like
Yes that’s the case.
The priceUpdate timestamp is Tue May 27 2025 17:38:59 GMT+0000 and you are trying to fetch at May-27-2025 05:40:39 PM UTC, which >60 seconds.
getPrice(“priceId”) method is actually getPriceNoOlderThan("priceId",60).
I would recommend you guys to use getPriceNoOlderThan. You can specify an age argument, that specified how old the price can be.