Bitget APIBitget API
UTAClassic
Legacy Doc
  • Overview
  • API Documentation
  • WebSocket
  • Agent Hub
  • SDK
  • Changelog
Copied to clipboard
Websocket
Introduction
Futures
Spot
Margin
    Cross
    Isolated
      Private
        Isolated-Margin Orders ChannelIsolated-Margin Account Channel
Private

Isolated-Margin Account Channel

Description

Code
{ "args":[ { "channel":"account-isolated", "coin":"default", "instType":"MARGIN" } ], "op":"subscribe" }

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation
subscribe Subscribe
unsubscribe Unsubscribe
argsList<Object>YesList of channels to request subscription
> instTypeStringYesProduct type: MARGIN
> channelStringYesChannel name
> coinStringYesCoin name,default represents all the coins,Only default is supported now
Code
{ "event":"subscribe", "arg":{ "instType":"MARGIN", "channel":"account-isolated", "coin":"default" } }

Response Parameters

ParameterTypeDescription
eventStringEvent
argObjectSubscribed channels
> instTypeStringProduct type
> channelStringChannel name
> coinStringdefault
codeStringError code, returned only on error
msgStringError message
Code
{ "action":"snapshot", "arg":{ "instType":"MARGIN", "channel":"account-isolated", "coin":"default" }, "data":[ { "uTime":"1695881380876", "id":"1", "coin":"USDT", "symbol":"BTCUSDT", "available":"989.4502207", "borrow":"0", "frozen":"0", "interest":"0", "coupon":"0" }, { "uTime":"1695881380876", "id":"1000000002", "coin":"BTC", "symbol":"BTCUSDT", "available":"0.00039814", "borrow":"0", "frozen":"0", "interest":"0", "coupon":"0" }, { "uTime":"1695881380876", "id":"1000000001", "coin":"USDT", "symbol":"ETHUSDT", "available":"9607383.17171658", "borrow":"0", "frozen":"0", "interest":"0", "coupon":"0" }, { "uTime":"1695881380876", "id":"1000000000", "coin":"ETH", "symbol":"ETHUSDT", "available":"2.5574646", "borrow":"0", "frozen":"0", "interest":"0", "coupon":"0" } ], "ts":1695881380876 }

Push Data Parameters

ParameterTypeDescription
argObjectSuccessful channel subscriptions
> instTypeStringProduct type
> channelStringChannel name
> coinStringdefault
actionStringPush data action, snapshot or update
dataList<Object>Subscribed data
> availableStringAvailable amount
> borrowStringBorrow amount
> symbolStringTrading pair
> coinStringCoin name
> frozenStringAmount frozen
> idStringID
> interestStringInterest
> uTimeStringUpdated time, ms
> couponStringCoupon
Isolated-Margin Orders Channel
JSON
JSON
JSON