description |
---|
How do I access crypto index values using the DIA oracle system? |
The oracle contains information about index values of crypto indices. You can access index values for all current indices offered by DIA.
You can execute an oracle call as follows:
- Access DIA's Crypto Index Oracle.
- Call
getValue(key)
wherekey
is the symbol for the index in capital letters, for instanceSCIFI
for the SCIFI Index. You can use the "Read" section on Etherscan to execute this call. - The response of the call contains two values:
- The current index value with a fix-comma notation of six decimals.
- The UNIX timestamp of the last oracle update.