You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/integrations/oracles/dia.md
+4-12Lines changed: 4 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,21 +53,13 @@ DIA Development Oracle contracts are not intended to be integrated into a dApp.
53
53
The oracle contains information about crypto assets. You can access a price quotation (see [sources](https://docs.diadata.org/documentation/methodology/digital-assets/cryptocurrency-trading-data) and [methodology](https://docs.diadata.org/documentation/methodology/digital-assets/exchangeprices)) and the current circulating supply as well as the timestamp of the last update.
54
54
55
55
1. Access the corresponding oracle smart contract (see table above).
56
-
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.
57
-
3. The response of the call contains four values:
58
-
1. The current asset price in USD with a fix-comma notation of five decimals.
59
-
2. The current circulating supply.
60
-
3. The [UNIX timestamp](https://www.unixtimestamp.com/) of the last oracle update.
61
-
4. The short name of the asset, e.g., `BTC` for Bitcoin.
56
+
2. Call `getValue(symbol)` with `symbol` being the asset symbol such as `BTC/USD`. You can use the "Read" section on Etherscan to execute this call.
57
+
3. The response of the call contains two values:
58
+
1. The current asset price in USD with a fix-comma notation of eight decimals.
59
+
2. The [UNIX timestamp](https://www.unixtimestamp.com/) of the last oracle update.
62
60
63
61
The development oracle supports price quotations for, at the very least, the following assets:
0 commit comments