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
Export as PDF
  1. Reference
  2. Architecture

Data delivery

PreviousData computationNextAPIs

Last updated 1 month ago

The price feed is created and published via an API endpoint, utilizing the previously and . This feed can be accessed off-chain using either RestAPI or DIA GraphQL, which allows for greater adaptability and direct modification of feed attributes.

Off-chain and on-chain delivery methods can be configured with custom update triggers, enhancing the feed's usability and reliability across various applications.

Update triggers

Update triggers are the rules that dictate how oracles refresh to mirror the most recent value of the data feed. These triggers are adaptable and can be tailored to optimally cater to particular scenarios, such as the price feeds of assets with low liquidity.

Each oracle can be customized to push data feed updates live based on the following parameters:

Trigger
Description
Example

Time-based (push)

Updates are triggered in predefined time intervals (seconds, minutes or hours)

15 minutes

Deviation-based (push)

Updates are triggered by a deviation from the last reported value.

5% deviation

Time + deviation (push)

The oracle will update whenever any of the two conditions is met.

5% deviation + 24h time

selected data sources
computational methodologies