Niza Global - API Docs
  • Introduction
  • General
  • Authentication
  • PUBLIC ENDPOINTS
    • Markets
    • Tickers
    • OHLC Data
    • Order Book
    • Historical Trades
  • AUTHENTICATED ENDPOINTS
    • Balances
      • (Deprecated) Trade Wallet
      • Spot Wallet
    • Orders
      • Create Order
      • Cancel Order
      • Open Orders
      • Closed Orders
      • Get Order
    • Trades
      • Trades History
      • Get Trade
  • Websocket API 1.0
    • Overview
    • Connection Details
    • WebSocket Authentication
    • Public Channels
      • Ticker Information
      • OHLC
      • Recent Trades
      • Orderbook
    • Private Channels
      • Order Executed
      • Trade Executed
Powered by GitBook
On this page
  • Subscribe with Pusher
  • Subscribe Request Payload
  • Examples
  • Payload
  • Example of the ticker event payload received as JSON
  1. Websocket API 1.0
  2. Public Channels

Ticker Information

Ticker information on currency pair.

When subscribing, the pair should be set in alphanumeric format only. Do not use separators between the base and quote asset. The correct format for NIZA/USDT to be set in a channel name is NIZAUSDT.

Subscribe with Pusher

var channel = pusher.subscribe("ticker-information.{pair}");

Subscribe Request Payload

{
   "event": "pusher:subscribe",
   "data": {
       "channel": "ticker-information.{pair}"
   }
}

Examples

Pusher
var channel = pusher.subscribe("ticker-information.NIZAUSDT");
WebSocket API in Javascript
const message = {
        event: "pusher:subscribe",
        data: {
            channel: "ticker-information.NIZAUSDT"
        }
    };
socket.send(JSON.stringify(message));

Payload

Name
Type
Description

channel

string

Channel name of subscription

type

string

Type of event notification

data

array

The payload of the ticker information

data.ask

decimal

Best ask price

data.ask_qty

decimal

Best ask quantity

data.bid

decimal

Best bid price

data.bid_qty

decimal

Best bid quantity

data.change

decimal

24-hour price change (quote currency)

data.change_ptc

decimal

24-hour price change in percentage

data.high

decimal

24-hour highest trade price

data.last

decimal

Last trade price

data.low

decimal

24-hour lowest trade price

data.symbol

string

The symbol of the currency pair

data.volume

decimal

24-hour trade volume in base currency

data.vwap

decimal

24-hour volume weighted average price

Example of the ticker event payload received as JSON

{
   "channel": "ticker",
   "type": "update",
   "data": [
       {
           "ask": "0.01000000",
           "ask_qty": "2.00000000",
           "bid": "0.01000000",
           "bid_qty": "428.00000000",
           "change": "0.00000000",
           "change_pct": "0.00000000",
           "high": "0.00000000",
           "last": "0.00000000",
           "low": "0.00000000",
           "symbol": "NIZA\/USDT",
           "volume": "0.00000000",
           "vwap": "0.00000000"
       }
   ]
}
PreviousPublic ChannelsNextOHLC

Last updated 8 months ago