Kadena Price Oracles

dApps built on Kadena can leverage DIA oracles to access up-to-date asset price information. These deployed oracles are designed for production environments.

Introduction to DIA

DIA is a cross-chain oracle provider that sources granular market data from diverse exchanges, including CEXs and DEXs. Its data sourcing is thorough, enabling unparalleled transparency and customizability for resilient price feeds for 20,000+ assets. Its versatile data processing and delivery ensures adaptability and reliability for any decentralized application.

Information on Usage of DIA Oracles on Kadena

DIA Oracles on Kadena are open source, and their source code is available in this repository. dApps built on Kadena can leverage DIA oracles to access up-to-date asset price information. These deployed oracles are designed for production environments and come with a predefined list of supported assets and settings.

If dApps require a custom oracle with different assets and configurations, please contact DIA on Telegram.

Deployed contracts

As Kadena allows for several chains in parallel, it is important to retrieve the price from the correct chain. Currently, DIA oracles are deployed on these chains:

Network IDChain IDDIA Contract Identifier

mainnet01

4

free.dia-oracle

testnet04

4

free.dia-oracle

How to access DIA oracles?

Locate one of the deployed contracts (either testnet or mainnet) and call the get-value function. This function expects one parameter, which is the symbols of the asset you want to retrieve and a โ€œ/USDโ€, so for example for the Bitcoin price the parameter must be โ€œBTC/USDโ€.

This will return two values:

  1. The price of the asset, with 8 decimals.

  2. The timestamp of the last update in Unix time format, in UTC timezone.

Included price feeds

The Kadena oracle includes the following price feeds. Use the Query Symbol as a parameter in the get-value function to receive the latest price information for any of these assets.

Asset

Query Symbol

Sources Overview

Bitcoin (BTC)

BTC/USD

USD Coin (USDC)

USDC/USD

Staked ETH (stETH)

STETH/USD

Ether (ETH)

ETH/USD

Wrapped Bitcoin (WBTC)

WBTC/USD

Moonbeam (GLMR)

GLMR/USD

Optimism (OP)

OP/USD

DIA Token (DIA)

DIA/USD

Arbitrum (ARB)

ARB/USD

Binance Coin (BNB)

BNB/USD

Avalanche (AVAX)

AVAX/USD

Celo Dollar (CUSD)

CUSD/USD

Kadena (KDA)

KDA/USD

Gnosis (GNO)

GNO/USD

Wrapped Ether (WETH)

WETH/USD

Learn more about DIAโ€™s data sourcing and data computation architecture.

Oracle configuration settings

Methodology: VWAPIR

The final price point for each asset is calculated by computing the assets' trade information across multiple DEXs and CEXs. This is done using a Volume Weighted Average Price with Interquartile Range (VWAPIR) methodology.

Update frequency: 0.5% deviation + 24-hour heartbeat

Each asset is updated every two minutes, if the new price deviates from the old one by more than 0.5%. Additionally, a heartbeat of 24 hours is applied, which means that each price is updated at least once per day even if it moves by less than 0.5%.

Support

For developer assistance, connect with the DIA team directly on Discord or Telegram.

Developers seeking other specialized, production-grade oracle with tailored price feeds and configurations can initiate the request by contacting the DIA BD Team via Telegram.

Last updated