Skip to main content

Ticker

Ticker data stream.

Connect

# spot market
websocat wss://api.datamaxiplus.com/ws/v1/ticker/spot -H 'X-DTMX-APIKEY: $YOUR_API_KEY'

# futures market
websocat wss://api.datamaxiplus.com/ws/v1/ticker/futures -H 'X-DTMX-APIKEY: $YOUR_API_KEY'

Subscribe

  • method specifies the type of request.
  • params list represents of symbols on exchanges that user wants to subscribe. The format of parameter is {base}-{quote}@{exchange}@{currency}@{conversionBase} (e.g. "BTC-KRW@upbit@USD@USDT").
  • The id uniquely identifies the subscription request.
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}

Response

Schema
    pnumber

    Latest price.

    vnumber

    Trading volume in the last 24 hours.

    p24hnumber

    Price 24 hours ago.

    pcnumber

    Price change between latest price and price 24 hours ago.

    hbnumber

    Highest bid from orderbook.

    lanumber

    Lowest ask from orderbook.

    udnumber

    Upper depth (2%) from orderbook.

    ldnumber

    Lower depth (2%) from orderbook.

    estring

    Exchange name.

    sstring

    Symbol (base-quote).

    bstring

    Base token.

    qstring

    Quote token.

    dinteger

    Date/time in UTC milliseconds.

    mstring

    Market type.