I’m trying to find oracles, or an API so that I can access Secret Network prices from a script (python).
So far I’ve found…
Secret Oracles… although the article talks more about generating random numbers than anything else.
Band Protocol on Secret Mainnet…
However I cannot find any mention of these projects on this forum. Not sure if both Secret Oracles and/or Band Protocol has since been abandoned on Secret?
What is there current/live price feed on Secret, or used by Secret defi, such as Shade?
I need to inform myself more about oracles in general… do they include an API accessible from python, or only accessible from a Secret smart contract (requiring gas fees)?
if you want it outside of your contract dApp (so just for analytics etc) you can just use any Exchange API or for example Coingecko: https://www.coingecko.com/api/documentation
Close… I want to sort out price feeds for importing/using on local PC price charting, poss maintaining my own databases. Some prices are not very available anywhere, like Shade’s assets.
Thanks for that github, I also have Shade’s Discord already.
SCRT price is easy to find anywhere.
Shade uses a combination of Band protocol for the critical prices used in lending, and then coingecko for others that are more so display. You would have to write some services to get data from those places.
If I look at the std Band Dataset page… There are the usual “mainstream” assets, but zero Shade assets… Or are Shade asset prices calc on the fly as a reference of / based on… other assets?
Also it occurs to me… I assume Oracles do not provide historical prices, just current/live prices?
If I wanted to build a complete historical database of most Secret / Shade asset prices, would I be required to basically capture any “live” price & store, thereby accumulate my own history?