Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
Websocket
Introduction
Futures
    Public
    Private
      Account channelEquity ChannelFill ChannelPosition ChannelHistory Position ChannelOrder ChannelTrigger Order ChannelCancel Order ChannelPlace Order ChannelADL Notification Channel
Spot
Margin
Private

Equity Channel

Description

Subscribe equity channel

Data will be pushed when the following events occurred:

  1. Transfer balance to Futures account
  2. Trading voucher deposit
  3. Open/close orders are filled
Code
{ "op": "subscribe", "args": [ { "instType": "USDT-FUTURES", "channel": "equity" } ] }

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation, subscribe unsubscribe
argsList<Object>YesList of channels to request subscription
> instTypeStringYesProduct type
USDT-FUTURES USDT-M Futures
COIN-FUTURES Coin-M Futures
USDC-FUTURES USDC-M Futures
> channelStringYesChannel name
Code
{ "event": "subscribe", "arg": { "instType": "USDT-FUTURES", "channel": "equity", "instId": "default" } }

Response Parameters

ParameterTypeDescription
eventStringYes
Operation
argObjectSubscribed channels
> instTypeStringProduct type
USDT-FUTURES USDT-M Futures
COIN-FUTURES Coin-M Futures
USDC-FUTURES USDC-M Futures
> channelStringChannel name
> instIdStringProduct ID default
codeStringError code
msgStringError message
Code
{ "action": "snapshot", "arg": { "instType": "USDT-FUTURES", "channel": "equity", "instId": "default" }, "data": [ { "btcEquity": "0.0021", "usdtEquity": "13.985457617660", "usdtUnrealized": "0.000000000000", "unionTotalMargin": "100", "unionAvailable": "11", "unionMm": "11" } ], "ts": 1695717225146 }

Push Parameters

ParameterTypeDescription
actionStringaction, snapshot
argObjectChannel
> instTypeStringProduct type
USDT-FUTURES USDT-M Futures
COIN-FUTURES Coin-M Futures
USDC-FUTURES USDC-M Futures
> channelStringChannel name
> instIdStringProduct ID default
dataList<Object>Subscribed data
>usdtEquityStringAccount equity (USDT)
>btcEquityStringAccount equity (BTC)
>usdtUnrealizedStringUnrealized profit and loss (USDT)
>unionTotalMarginStringTotal multi-asset margin
>unionAvailableStringAvailable balance under multi-asset margin mode
>unionMmStringMaintenance margin under multi-asset margin mode
Account channelFill Channel
JSON
JSON
JSON