Chart Points

How do I access chart points from several exchanges using the DIA oracle system?

The oracle contains information about chart points of an ever growing list of exchanges and assets. You can access a price quotation and the timestamp of the last update.

  1. Call getCoinInfo(exchange) with exchange being the full name of the exchange such as Uniswap. You can use the "Read" section on Etherscan to execute this call.

  2. The response of the call contains three values:

    1. The current asset price in USD with a fix-comma notation of five decimals.

    2. The UNIX timestamp of the last oracle update.

    3. The short name of the quoted asset, e.g., ETH for Ethereum.

As of now, the following list of exchanges is available in this oracle: - 0x (ETH) - Bancor (ETH) - Bitmax (ETH) - CREX24 (CREX) - Curvefi (DAI) - Gnosis (ETH) - Kyber (ETH) - Loopring (ETH) - STEX (PLEX) - SushiSwap (ETH) - Uniswap (ETH) - PanCakeSwap (WBNB)