Skip to main content
DIA offers multiple ways to access price data from oracles. The methods differ based on the oracle type (Push or Pull) and whether you’re consuming the oracle through the Nexus or Lumina stack.

Oracle Access Methods

The how-to guides are specifically for EVM-compatible chains. For non-EVM chains (like Stacks, Alephium, etc.), Please refer to the chain-specific guides for chain-specific implementation details.

updates Method

Access Push-based oracles through the Lumina Stack that automatically update price feeds at fixed intervals or when price deviations exceed thresholds.

request Method

Access Pull-based oracles through the Lumina Stack that fetch price data on-demand when your contract requests it.

getValue Method

Direct value retrieval using the standard DIA oracle interface through the Nexus Stack. Simple method for getting current price values.

When to Use Each Method

The method to use depends on the deployed oracle contract you’re planning to consume on each chain through the available stacks (Nexus or Lumina). We specify the methods available for each chain in their dedicated chain-specific guide.