How to Access Data
To consume price data, invoke a read function on the oracle contract that takes an asset key as a parameter. For example, If you passBTC/USD
as the key, it will return the most recent price of BTC
in USD
with 8 decimal places (e.g. 9601458065403 is $96,014.58065403) along with the Unix timestamp of the last price update.
Request a Custom Oracle
DIA offers highly customizable oracles that are individually tailored to each dApp’s needs. Each oracle can be customized in the following ways, including:- Data Sources & Asset Feeds
- Pricing Methodologies
- Update Triggers (Frequency, Deviation, Heartbeat, …etc)