dApps built on Alephium can leverage DIA oracles to access up-to-date asset price information.
Chain | Address |
---|---|
Mainnet | 285zrkZTPpUCpjKg9E3z238VmpUBQEAbESGsJT6yX7Rod |
Testnet | 216wgM3Xi5uBFYwwiw2T7iZoCy9vozPJ4XjToW74nQjbV |
Pricing Methodology | VWAPIR |
Deviation (%) & Refresh Frequency | 0.2% and 120 seconds |
Heartbeat | 10mins |
Asset Ticker | getValue(key) | Asset Markets |
---|---|---|
BTC | BTC/USD | BTC markets |
USDC | USDC/USD | USDC markets |
ETH | ETH/USD | ETH markets |
WBTC | WBTC/USD | WBTC markets |
USDT | USDT/USD | USDT markets |
ALPH | ALPH/USD | ALPH markets |
AYIN | AYIN/USD | AYIN markets |
getValue
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:
DIAOracle
contract implementation in Ralph: