Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7961

How to get price for a token pair at a specific time in an onchain program?

$
0
0

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.


Viewing all articles
Browse latest Browse all 7961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>