Skip to main content
Refer to Websocket for establishing the websocket connection.

Leverage

Params

{
    "method": "subscribe",
    "params": {
        "source": "account_info",
        "account": "42trU9A5..."
    }
}

Stream

{
    "channel": "account_info",
    "data": {
        "ae": "2000",
        "as": "1500",
        "aw": "1400",
        "b": "2000",
        "f": 1,
        "mu": "500",
        "cm": "400",
        "oc": 10,
        "pb": "0",
        "pc": 2,
        "sc": 2,
        "sb": [
          {
            "s": "SOL",
            "a": "1.50000000",
            "lr": "0.80",
            "aw": "1.00000000",
            "pb": "0.00",
            "dw": "250.000000",
            "dd": "50000.000000",
            "wd": "250000.000000"
          }
        ],
        "t": 1234567890
    }
}
FieldTypeDescription
’ae’stringAccount equity
’as’stringAvailable to spend
’aw’stringAvailable to withdraw
’b’stringAccount balance
’f’integerAccount fee tier
’mu’stringTotal margin used
’cm’stringMaintenance margin required in cross mode
’oc’integerOrders count
’pb’stringPending balance
’pc’integerPositions count
’sc’integerStop order count
’sb’arraySpot asset balances (see below)
‘t’numberTimestamp in milliseconds
Spot Balance Fields
FieldTypeDescription
's'stringSpot asset symbol
'a'stringTotal amount held
'lr'stringLoan-to-value ratio
'aw'stringAvailable to withdraw
'pb'stringPending balance
'dw'stringDaily withdrawal amount (USD)
'dd'stringEffective daily deposit limit (USD)
'wd'stringEffective daily withdrawal limit (USD)