DIA is a cross-chain oracle provider that sources granular market data from diverse exchanges, including CEXs and DEXs. Its data sourcing is thorough, enabling unparalleled transparency and customizability for resilient price feeds for 20,000+ assets. Its versatile data processing and delivery ensures adaptability and reliability for any decentralized application.Documentation Index
Fetch the complete documentation index at: https://www.diadata.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
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)