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

Cross-Margin Orders Channel

Description

Code
{ "args":[ { "channel":"orders-crossed", "instId":"BTCUSDT", "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
> instIdStringYesProduct ID
e.g. ETHUSDT
Code
{ "event":"subscribe", "arg":{ "instType":"MARGIN", "channel":"orders-crossed", "instId":"BTCUSDT" } }

Response Parameters

ParameterTypeDescription
eventStringEvent
argObjectSubscribed channels
> instTypeStringProduct type: MARGIN
> channelStringChannel name
> instIdStringProduct ID
e.g. ETHUSDT
codeStringError code, returned only on error
msgStringError message
Code
{ "action":"snapshot", "arg":{ "instType":"MARGIN", "channel":"orders-crossed", "instId":"BTCUSDT" }, "data":[ { "force":"gtc", "orderType":"market", "price":"0.000000000", "quoteSize":"0.000000000", "side":"buy", "feeDetail":[ { "feeCoin":"USDT", "deduction":"no", "totalDeductionFee":"0", "totalFee":"0.01538693" } ], "enterPointSource":"web", "status":"partially_filled", "baseSize":"0.000000000", "cTime":"1695881543701", "uTime":"1695881543701", "clientOid":"2000000000", "fillPrice":"26426.800000000", "baseVolume":"0.000200000", "fillTotalAmount":"5.285360000", "loanType":"normal", "orderId":"1", "stpMode": "cancel_taker" } ], "ts":1695881543805 }

Push Data Parameters

ParameterTypeDescription
argObjectSuccessful channel subscriptions
> instTypeStringProduct type: MARGIN
> 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
> baseVolumeStringFilled 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 order
market
> 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;
> 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 Account ChannelIsolated-Margin Orders Channel
JSON
JSON
JSON