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.

Oracle details

ChainAddress
MainnetProvider: diadata (hex. 64696164617461)
Oracle Document ID: 42
TestnetProvider: diadata (hex: 64696164617461)
Oracle Document ID: 1

Oracle configuration

Pricing MethodologyVWAP
Deviation (%) & Refresh Frequency0.5% and 120 seconds
Heartbeat24h

Asset feeds

Asset TickerAsset Ticker (Hex)Asset Markets
BTC4254430000000000000000000000000000000000BTC markets
ETH4554480000000000000000000000000000000000ETH markets
XRP5852500000000000000000000000000000000000XRP markets
RLUSD524C555344000000000000000000000000000000RLUSD markets
USDC5553444300000000000000000000000000000000USDC markets
USDT5553445400000000000000000000000000000000USDT markets

How to access data

The DIA oracle object can be retrieved with the ledger_entry API call by specifying the account and oracle_document_id.

This is the Request JSON for mainnet:

{
  "id": "example_get_oracle",
  "command": "ledger_entry",
  "oracle": {
    "account": "rP24Lp7bcUHvEW7T7c8xkxtQKKd9fZyra7",
    "oracle_document_id": 42
  },
  "ledger_index": "validated"
}

It will return the current price of all the assets in hexadecimal format, which can then be converted to decimal and scaled to obtain the actual price with 8 decimal places.

Support

For developer assistance, connect with the DIA team directly on Discord or Telegram.

Developers seeking other specialized, production-grade oracle with tailored price feeds and configurations can initiate the request by contacting the DIA BD Team via Telegram.