Alephium
dApps built on Alephium can leverage DIA oracles to access up-to-date asset price information.
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
Mainnet
Testnet
Oracle configuration
Pricing Methodology
Deviation (%) & Refresh Frequency
0.2% and 120 seconds
Heartbeat
10mins
Asset feeds
BTC
BTC/USD
USDC
USDC/USD
ETH
ETH/USD
WBTC
WBTC/USD
USDT
USDT/USD
ALPH
ALPH/USD
AYIN
AYIN/USD
How to access data
Locate one of the deployed contracts (either testnet or mainnet) and call the getValue
function. This function expects one parameter, which is the symbols of the asset you want to retrieve and a “/USD”, so for example for the Bitcoin price the parameter must be “BTC/USD”.
This will return two values:
The price of the asset, with 8 decimals.
The timestamp of the last update in Unix time format, in UTC timezone.
Below is the DIAOracle
contract implementation in Ralph:
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.
Last updated