XRP Ledger news · Trading and DeFi

Integrating DIA Oracles on the XRP Ledger

In plain words

This post from the XRP Ledger blog shows developers how to read price data that DIA, an oracle provider, publishes on the XRP Ledger. An oracle is a service that puts outside information, such as prices, on a ledger.

Written by zerps in plain words, from the source linked below.
Published
2025
Section
Blog (2023+)

The oracle details

DIA publishes prices under the provider name diadata. On Mainnet the oracle document ID is 42 and on Testnet it is 1. The feeds include BTC, ETH, XRP, RLUSD, USDC and USDT. Prices update when they move by 1% and are checked every 120 seconds, with a forced update at least every 24 hours, called the heartbeat.

How to read it

You fetch the oracle object with the ledger_entry request, giving the publishing account and the oracle_document_id. The answer holds prices in hexadecimal. Convert to decimal and scale to get a price with 8 decimal places. You need no outside indexing service.

Custom oracles

DIA can set up custom oracles with chosen data sources, pricing methods and update triggers, covering any of 20,000+ supported assets. The post says these are free for apps to set up and use.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.