1. Request

paramtypedescription
typestring'subscribe' | 'unsubscribe'
channelstring'balance'
// request

{
  "type": "subscribe",
  "channel": 'balance',
}

2. Responses

paramtypedescription
channelstring'balance'
dataBALANCESee below.
//Format
{
  [currency]: {
    available: string,
    total: string,
  }
}

//Example
{
  BTC: {
    available: "0.0",
    total: "0"
  },
  ETH: {
    available: "0.3",
    total: "1"
  }
}
currencystringCurrency ID
availablestringAvailable amount of currency.
totalstringTotal amount of currency.
//response

{
  "channel": 'balance',
  "data": {
    [currency]: {
        available: string,
        total: string,
    }
  },
}