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 Orders Channel

Description

Code
{ "args":[ { "channel":"orders-isolated", "instId":"BTCUSDT", "instType":"MARGIN" } ], "op":"subscribe" }

Request Parameters

ParameterTypeRequiredDescription
opStringYesOperation
subscribe Subscribe
unsubscribe Unsubscribe
argsList<Object>YesList of channels to request subscription
> instTypeStringYesProduct type
> channelStringYesChannel name
> instIdStringYesProduct ID
E.g. ETHUSDT
Code
{ "event":"subscribe", "arg":{ "instType":"MARGIN", "channel":"orders-isolated", "instId":"BTCUSDT" } }

Response Parameters

ParameterTypeDescription
eventStringEvent
argObjectSubscribed channels
> instTypeStringProduct type
> channelStringChannel name
> instIdStringProduct ID
E.g. ETHUSDT
codeStringError code, returned only on error
msgStringError message
Code
{ "action":"snapshot", "arg":{ "instType":"MARGIN", "channel":"orders-isolated", "instId":"BTCUSDT" }, "data":[ { "enterPointSource":"web", "force":"gtc", "symbol":"BTCUSDT", "orderType":"market", "price":"0.000000000", "quoteSize":"0.000000000", "side":"sell", "feeDetail":[ { "feeCoin":"USDT", "deduction":"no", "totalDeductionFee":"0", "totalFee":"0.01538693" } ], "status":"partially_filled", "baseSize":"0.056100000", "cTime":"1697094058377", "uTime":"1697094058377", "clientOid":"1", "fillPrice":"26869.6530837789661319", "baseVolume":"0.056100000", "fillTotalAmount":"1507.387538000", "loanType":"autoRepay", "orderId":"1", "stpMode":"cancel_taker" } ], "ts":1697094058809 }

Push Data Parameters

ParameterTypeDescription
argObjectSuccessful channel subscriptions
> instTypeStringProduct type
> channelStringChannel name
> instIdStringProduct ID e.g. ETHUSDT
actionStringPush data action, snapshot or update
dataList<Object>Subscribed data
> baseSizeStringNumber of base coins
> cTimeStringCreation time, Unix millisecond timestamp
> uTimeStringUpdate time, Unix millisecond timestamp
> clientOidStringClient Unique Identifier
> fillPriceStringSale price
> baseVolumeStringBase coin quantity
> fillTotalAmountStringsum of money sold
> loanTypeStringMargin order model
normal: place a normal order
autoLoan place an order with auto-borrow
autoRepay place an order with auto-repay
autoLoanAndRepay place an order with auto-borrow and auto-repay
> orderIdStringOrder ID
> orderTypeStringOrder type
limit: limit price
market: market price
> priceStringOrder price
> quoteSizeStringNumber of denominated coins
> sideStringMethods of Sale and Purchase
> feeDetailList<Object>Transaction fee of the order
  >> deductionStringIs discount
  >> totalDeductionFeeStringFee of discount
  >> totalFeeStringOrder transaction fee, the transaction fee charged by the platform from the user.
  >> feeCoinStringThe currency of the transaction fee
> enterPointSourceStringOrder source
WEB: Orders created on the website
API: Orders created on API
SYS: System managed orders, usually generated by forced liquidation logic
ANDROID: Orders created on the Android app
IOS: Orders created on the iOS app
> statusStringOrder status
live order;
partially_filled filled;
filled filled;
cancelled: cancelled;
> symbolStringTrading pair
> forceStringOrder Strategy
> stpModeStringSTP Mode
none not setting STP
cancel_taker cancel taker order
cancel_maker cancel maker order
cancel_both cancel both of taker and maker orders
tsLongTimestamp ms
Cross-Margin Orders ChannelIsolated-Margin Account Channel
JSON
JSON
JSON