Skip to main content

DIA

Requesting a custom oracle​

DIA offers customizable oracles that are tailored to each dApp’s needs. Each oracle can be customized in several ways, including data sources, data cleansing filters, pricing and computational methodologies, update mechanisms and more. This ensures that the data and oracle remain robust and resilient to the market conditions and provide a global market price as well as specific individual or cross-chain market prices.

By collecting billions of raw trades directly from over 90 sources, including CEXs, DEXs, and NFT marketplaces, DIA enables full transparency, customization, and control throughout the entire value stack. DIA's data and oracle suite comprise price feeds for 20,000+ assets including cryptocurrencies, NFT collections, and liquid-staked tokens, as well as random number generation and other data feed types.

→ Request a Custom Oracle | DIA Documentation

Token price feeds​

DIA token price feeds provide smart contracts with real-time price information for 3,000+ cryptocurrencies, sourced transparently from 90+ trusted, high-volume DEXs and CEXs.

How to access DIA oracles?​

Here is an example of how to access a price value on DIA oracles:

  1. Access your custom oracle smart contract on Linea.
  2. Call getValue(pair_name) with pair_name being the full pair name such as BTC/USD. You can use the "Read" section on the explorer to execute this call.
  3. The response of the call contains two values:
  • The current asset price in USD with a fix-comma notation of 8 decimals.
  • The UNIX timestamp of the last oracle update.

You can find DIA's oracle integration samples in Solidity and Vyper languages by visiting:

→ Access the Oracle | DIA Documentation

Linea demo price oracles​

DIA has deployed the following demo oracles for the Linea community. It provides a limited selection of cryptocurrency price feeds with predefined configuration settings.

DIA demo oracles are not intended for use in production environments.

Developers can request a dedicated, production-ready oracle with custom price feeds and configuration settings. Start the request process: Request a Custom Oracle | DIA Documentation

Demo Oracle Smart Contracts​

NetworkContract address
Linea Mainnet0xbb5a4708302ee9d959abc417ca1280abb106ba6a

Included price feeds​

DIA/USD, BTC/USD, USDC/USD

Supported token API endpoints​

DIA also supports API and GraphQL endpoints to return cryptocurrency price data. You can visit the DIA Documentation to see all API endpoints.

🎨 NFT floor price feeds

DIA NFT floor price feeds provide smart contracts with real-time price information of 18,000+ NFT collections, sourced on-chain with 100% transparency from multiple, cross-chain NFT marketplaces.

Supported NFT API endpoints​

DIA also supports API endpoints to return cryptocurrency price data. Developers can directly access the example endpoints listed below or visit the DIA Documentation to see all API endpoints.

Learn more about DIA