Oracle Details
| Chain | Address |
|---|---|
| Testnet | CAEDPEZDRCEJCF73ASC5JGNKCIJDV2QJQSW6DJ6B74MYALBNKCJ5IFP4 |
Available Asset Feeds
| Asset Price Feed | Asset Markets |
|---|---|
| BTC | BTC Markets |
| USDC | USDC Markets |
| DIA | DIA Markets |
How to Access Data
Call theread_oracle_value function on the oracle contract with the Query Symbol (e.g., “BTC/USD”). The function returns the asset price with 8 decimal precision and the timestamp of the last update.
Below is the oracle contract code in Soroban:
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)