README
Price Feed Oracle Consumer Example
This is a code snippet that shows the consumption of an GoraNetwork global state price pair oracle. This example reads from two smart contracts: the price feed index contract that stores the current oracle appId for each price pair, and the corresponding contract for the desired price pair oracle.
These institutional data providers are currently feeding the price feeds:
Kaiko
Amberdata
dxFeed
Brave New Coin
Crypto Compare
Twelve Data
To view the index contract and look up the appId for a price pair on testnet:
To view the algo/usd oracle being udpated, see the following app:
Requirements:
Python3
Python modules:
pyteal
,python-dotenv
,py-algorand-sdk
Running the App
To run the app, follow these steps:
• Clone the repo
• Create a .env file with the following:
From the directory where you cloned the application, run the following command:
You will see the following output:
To run the applications multiple times, you can remove the following line on
This last line immediately deletes the created application, so as not to use up the account's allowed limit of 10 apps.
For any questions with the above procedure, email us at communications@gora.io and a developer will be in touch with you!
Last updated