πŸ”’Account Update Stream

Push account update events only when update happens on user's account, including changes on balances or positions.

Features:

  • Stream Name: accountUpdate

  • Update Speed: Real-time

Response:

{
    "eventType" : "accountUpdate",
    "eventTime" : 1670240315627,
    "reasonType" : "TRADE",
    "transactionTime" : 1670240315627,
    "transactionId" : 6,
    "balances" : [ {
        "asset" : "usdt",
        "margin" : 99528.161345,
        "locked" : 470.662,
        "crossLocked" : 0.0,
        "isolatedLocked" : 470.662,
        "deposited" : 99998.823345
    } ],
    "positions" : [ {
        "symbol" : "btc_usdt",
        "locked" : 470.662,
        "marginMode" : "ISOLATED",
        "amount" : -0.1,
        "basePrice" : 23533.1,
        "upl" : -2.07,
        "uplPercentage" : -0.087961212,
        "leverage" : 5
    } ],
    "tradeFeeAsset" : "usdt"
}

Reason types:

  • TRADE

  • TRADE_VIA_AUCTION

  • ORDER

  • DEPOSIT

  • WITHDRAW

  • FUNDING_FEE

  • LIQUIDATION

  • LIQUIDATION_VIA_AUCTION

  • UPDATE_LEVERAGE

  • UPDATE_MARGIN_MODE

  • UPDATE_LOCKED_BALANCE

  • UPDATE_TRADE_FEE_ASSET

Last updated