Skip to main content

DIA

DIA is a cross-chain oracle provider that enhances data transparency, customization, and accessibility. With a novel architecture aggregating raw trade data directly from first-party sources, namely centralized and decentralized exchanges, DIA offers 100% source transparency, bespoke customization, and chain-native asset price feeds.

You can find an example on how to use DIA in your project on this page.

How to use DIA oracles on Arbitrum

Requesting a custom oracle: DIA deploys oracles tailored to each dApp’s needs. Each oracle is customizable, including data sources, cleansing filters, pricing, computational methodologies, update mechanisms, and more. This flexibility ensures that the data and oracle remain robust and resilient to the market conditions and provide a global market price and specific individual or cross-chain market prices. → Request a Custom Oracle for your dApp | DIA Documentation

Token Price Feeds

DIA token price feeds provide smart contracts with real-time price information for 3,000+ cryptocurrencies, sourced from 80+ 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 Arbitrum.
  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

Arbitrum demo price oracles

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

note

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
Arbitrum0xd041478644048d9281f88558e6088e9da97df624
Arbitrum Nova0xa707a5c6a180da0ae2ef17ebff54f1f3589d9670

Included Price Feeds

DIA/USD, BTC/USD, USDC/USD

Supported token API endpoints

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

NFT 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 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.