Overview
In this section we give detailed information about each asset traded on DMEX. Below you will find some definitions in order to understand the information better.
The main parameters in an asset are the Price URL and the Price Path.
When trading BTC (Bitcoin) the MARK PRICE is taken from the Price URL https://www.bitstamp.net/api/v2/ticker/btcusd/ which returns a JSON string with the latest ticker information for Bitcoin on Bitstamp.
The response looks as follows:
The last traded price on Bitstamp is represented by the last JSON parameter. Therefore when the Oracle is requested to provide the MARK PRICE for Bitcoin, it will request the JSON from the Price URL and take the value under the "last" parameter (Price Path).
Since assets can have different numbers of decimals in the price, the asset also specifies the decimals value. In this case 2.
Last updated