What is PriceStatus for/do I still need it?

Found PriceStatus being mentioned here:

Is it still in use? If I use it for my onchain program, is get_price_no_older_than() sufficient or do I need to check the price status as well?

As you are interested in getting price data onchain , follow this for your smart contract
https://docs.pyth.network/price-feeds/use-real-time-data/evm#write-contract-code

It uses getPriceNoOlderThan as you mentioned.

I hope this helps.

That’s an internal field for the oracle accounts itself and shouldn’t be used outside of that. the getPrice* methods all return the latest trading price.

3 Likes