I need to get a price for ETH/USD and BTC/USD for the specified time. For example yesterday at 9:00 am. How can I do it in the on-chain Solana program? What oracle can be used?
I have checked the Pyth network, but it seems to work only for the last price. There is an option for historical prices, but only on Ethereum.