Websocket subscription

Once connected to the Websocket, you can subscribe to it to get active pushes for inquiries/quotes/filled orders. The format for subscribing to the channel is {Type}. {Currency}.

Type Enum
Description

inquiry

Inquiry push

quote

Quote push

trade

Filled trade push

Currency Enum
Description

BTC

ETH

// request code
{
    "jsonrpc" : 2.0,
    "method" : "/private/subscribe", 
    "params" : {
        "channels":[
            "inquiry.BTC",
            "quote.ETH",
            "trade.ETH"
        ]
    }, 
    "id" : 1
}
// response code
{
    "jsonrpc" : 2.0,
    "method" : "/private/subscribe", 
    "result" : "ok",
    "id" : 1
}

Last updated