Skip to main content
DIA offers multiple ways to access price data from oracles, all built on the Lumina stack. The method you use depends on the oracle type: Push, Pull, or a direct read.

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 that automatically update price feeds at fixed intervals or when price deviations exceed thresholds.

request Method

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

getValue Method

Direct value retrieval using the standard DIA oracle interface. 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.