DIA

Overview

DIA is a cross-chain, end-to-end, open-source data and oracle platform for Web3. DIA is an ecosystem for open financial data in a financial smart contract ecosystem. The target of DIA is to bring together data analysts, data providers, and data users. In general, DIA provides a reliable and verifiable bridge between off-chain data from various sources and on-chain smart contracts that can be used to build a variety of financial dApps. DIA is setup as a hybrid system with off-chain components for storing and processing large amounts of data and on-chain components providing data sources for financial smart contracts.

DIA's API

Find the right data for your needs Show your users the most transparent data on the market with DIA's API. Whether you're building a financial service, a portfolio management tool, a new media offering, or more, DIA has the most advanced and updated data on the market for your product.

API Access

The DIA base URL is https://api.diadata.org/v1. All API paths are sub-paths of this base URL. You can find specific documentation for the endpoints of our API on the API documentation site.
API Endpoints
DIA Documentation

DIA's Oracle

Here, we provide an overview of the deployed oracle contracts on each supported chain.
DIA Development Oracle contracts are smart contracts that provide a selected range of asset prices for live testing on our Mainnet and Testnet. The contracts are upgraded and exchanged on a rolling basis and are not maintained indefinitely.
DIA Development Oracle contracts are not intended to be integrated into a dApp. DIA deploys dedicated contracts for dApps. Please request a dedicated oracle by contacting the team on their Discord or the DIA DAO Forum.

Deployed contracts

Astar
Shiden
Shibuya
Smart Contract: 0x1232AcD632Dd75f874E357c77295Da3f5Cd7733E
Oracle Type: Key/Value Oracle V2

Price feeds

The oracle contains information about crypto assets. You can access a price quotation (see sources and methodology) and the current circulating supply as well as the timestamp of the last update.
  1. 1.
    Access the corresponding oracle smart contract (see table above).
  2. 2.
    Call getCoinInfo(coin_name) with coin_name being the full coin name such as Bitcoin. You can use the "Read" section on Etherscan to execute this call.
  3. 3.
    The response of the call contains four values:
    1. 1.
      The current asset price in USD with a fix-comma notation of five decimals.
    2. 2.
      The current circulating supply.
    3. 3.
      The UNIX timestamp of the last oracle update.
    4. 4.
      The short name of the asset, e.g., BTC for Bitcoin.
As of now, the following list of quotations is available in this development oracle:
  • BTC
  • ETH
  • DIA
  • USDC
  • FTM
  • SDN
  • KSM
  • MOVR
  • ASTR