DMEX
SUPPORT PORTALTELEGRAM
  • Introduction
  • Changelog
  • General
  • Oracle
  • Funds Safety
  • Volume on DMEX
  • Bitcoin Integration
  • xDAI Integration
  • Withdrawing from Old Contracts
  • FEES
  • Trading Fees
  • Deposits & Withdrawals
  • Orders
    • Market
    • Limit
    • Stop-Limit
    • Expiration Term
    • Leverage
    • Cross Margin
  • Definitions
    • Mark Price
    • Asset
    • Futures Contract
    • Position
    • Liquidity Pools
    • TradingView
  • Formulas
    • Liquidation Price
    • Maintenance Margin
    • Risk Limit
    • Global MM Multiplier
    • Funding Cost
    • USD Conversion
  • EMERGENCY METHODS
    • Overview
    • Withdrawing funds
    • Force Release Collateral
    • Finding the Base Contract
    • Finding the Trading Contract
  • Assets
    • Overview
    • BTC - Bitcoin
    • ETH - Ethereum
    • LTC - Litecoin
    • BCH - Bitcoin Cash
    • ADA - Cardano
    • XLM - Stellar
    • XMR - Monero
    • LINK - ChainLink
    • ATOM - Cosmos
    • DOT - Polkadot
    • UNI - Uniswap
    • ZRX - 0x
Powered by GitBook
On this page

Was this helpful?

  1. Assets

Overview

Last updated 5 years ago

Was this helpful?

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 is taken from the Price URL which returns a JSON string with the latest ticker information for Bitcoin on Bitstamp.

The response looks as follows:

{
    "high": "7495.00", 
    "last": "7425.29", // this is the last traded price on Bitstamp
    "timestamp": "1578223348", 
    "bid": "7425.29", 
    "vwap": "7358.33", 
    "volume": "3386.74324367", 
    "low": "7256.03", 
    "ask": "7429.67", 
    "open": "7356.05"
}

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.

MARK PRICE
https://www.bitstamp.net/api/v2/ticker/btcusd/