DIA Nexus Documentation
  • Nexus Overview
  • Intro to Nexus
    • How it works
    • Nexus vs. Lumina
    • Integrated Chains
  • Data products
    • Token Price Feeds
    • RWA Price Feeds
    • Randomness
    • Fair-value Feeds
  • How-to Guides
    • Fetch Price Data
      • Solidity
      • Vyper
      • Demo Oracles
      • Chain-specific Guide
        • Aleph Zero
        • Alephium
        • Edu Chain
        • Hydration
        • Kadena
        • LUKSO
        • Somnia
        • Stacks
        • Superseed
        • XRP Ledger (XRPL)
    • Generate Randomness
      • Solidity
      • WASM
      • Demo Oracles
      • Chain-specific Guide
        • Alephium
    • Migrate to DIA
    • Fund the Oracle
    • Build a Scraper
      • Development Cluster Stack
      • DIA Test‐Space with Docker Compose
      • DIA Test‐Space with Minikube
      • Add a new exchange scraper
      • Add a new foreign scraper
      • Add a new liquidity scraper
      • Additional notes
  • Request a Custom Oracle
  • Reference
    • Architecture
      • Data sourcing
      • Data computation
      • Data delivery
    • APIs
      • Token prices
        • RestAPI
          • Request Samples
        • GraphQL
          • Request Samples
      • RWA prices
    • Pricing Methodologies
      • IR: Interquartile Range Filter
      • MAIR: Moving Average with Interquartile Range Filter
      • VWAP: Volume Weighted Average Price
      • VWAPIR: Volume Weighted Average Price with Interquartile Range Filter
      • LST fair price
    • Data Sources
      • CEXes Data
      • DEXes Data
    • Smart Contracts
      • DIAOracleV2.sol
      • DIARandomOracle.sol
    • Randomness Protocol
  • Resources
    • Audits
    • Community & Support
    • Security Bounty Program
    • Research
      • Return Rates in Crypto Farming
      • Crypto Volatility Index
      • Compounded Rates
      • Polkadot Medianizer
    • T&C
      • Licence Agreement
      • Contributor Covenant Code of Conduct
      • Disclaimer
Powered by GitBook
On this page
  • Introduction to DIA
  • Usage of DIA Oracles on LUKSO
  • Overview
  • How to Access DIA Oracles
  • Included Price Feeds
  • Oracle Configuration Settings
  • Methodology: VWAPIR
  • Update frequency: 0.5% deviation + 24-hour heartbeat
  • Oracle Support
Export as PDF
  1. How-to Guides
  2. Fetch Price Data
  3. Chain-specific Guide

LUKSO

dApps built on LUKSO can leverage DIA oracles to access up-to-date asset price information.

PreviousKadenaNextSomnia

Last updated 1 month ago

Introduction to DIA

is a cross-chain oracle provider that aggregates market data from a wide range of sources, including CEXs and DEXs. Its first-party 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.

Usage of DIA Oracles on LUKSO

Overview

The DIA oracle on LUKSO is free of use. dApps built on LUKSO can leverage the oracle to access up-to-date asset price information. This oracle is designed for production environments and comes with a predefined list of feeds and settings.

The main oracle contract is deployed at the following address .

If dApps require a custom oracle with different assets and configurations, please .

How to Access DIA Oracles

Developers can access specific asset prices via dedicated smart contract adapters listed in the next section. Each adapter contract provides price data by calling functions without additional parameters.

For example, to retrieve the latest , you can call:

  1. latestAnswer - provides the latest available price data for BTC/USD with 8 decimals accuracy

  2. latestRoundData - provides the latest available price data for BTC/USD (8 decimals) with the Unix timestamp (UTC timezone) of the last update

More info on the .

Included Price Feeds

Below is the list of included price feeds. Use the corresponding adapter address to query the latest price information.

Price feed
Adapter address
Data sources

EUR/USD

0xbCfD839664B5Ad4D0C0C58db0c716D7a28dCd15E

LYX/USD

0x3153e4d03Cf97B230fc9c9d0ECCE5b2F0834d130

GBP/USD

0x7EA5b4bb2D89B1EfEF00FCC95E139B77Da27d460

BTC/USD

0xD19856Bd3Dbd9Cb00BaC76Fc90603FA3bB05aCEA

ETH/USD

0xc7f3aceBe05482eeCD668df1FCF1B59e6d14f77b

wstETH/USD

0x18f2182B37d46deC1dc236Cf3Aad3a02981796cB

DAI/USD

0x1bB6c1A90c9449A14C184Dd141D2c7d7b788a679

USDC/USD

0xc675A8d220E1ba6d14a77C9FbcFDd5f9474BD07A

USDT/USD

0xC00c10499DEF24352475Ae873C51FaFcFC894f03

stETH/USD

0x2b94002cfFA638B37E4DDe54EDfcF6Efdcb29E6A

Oracle Configuration Settings

Methodology: VWAPIR

Update frequency: 0.5% deviation + 24-hour heartbeat

Each asset is updated every two minutes, if the new price deviates from the old one by more than 0.5%. Additionally, a heartbeat of 24 hours is applied, which means that each price is updated at least once per day even if it moves by less than 0.5%.

Oracle Support

Learn more about DIA’s and architecture.

The final price point for each asset is calculated by computing the assets' trade information across multiple DEXs and CEXs. This is done using a .

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

Developers seeking other oracles with tailored price feeds and configurations can initiate the request by .

DIA
0x245ad685F4D89D30fD1a14682C030c6128d08d17
contact DIA on Telegram
BTC/USD price
Asset Specific Value Calling Convention
data sourcing
data computation
Volume Weighted Average Price with Interquartile Range (VWAPIR) methodology
Discord
Telegram
contacting the DIA BD Team via Telegram
EUR Sources
LYX Sources
GBP Sources
BTC Sources
ETH
Sources
wstETH Sources
DAI Sources
USDC Sources
USDT Sources
stETH Sources