WebSocket · Private

Orders Channel

No push on first subscribe. Data is pushed when an order is placed, filled, cancelled or amended. Subscribe per trading pair only.

Login requiredPush frequency: real-time (on order status change)
WSSwss://stream-api.koinsayang.com/v2/ws/private
Channelorders
instTypeSPOT
Private channels require login with the same ACCESS-KEY, passphrase, timestamp and signature as REST. See Authentication & Signing.

Market buy of BTCUSDT with an example order amount of 10,000 USDT. The order is not yet filled, and the order status is: live

The order is partially filled, and the order status is: partially_filled

{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "orders",
"instId": "BTCUSDT"
},
"data": [
{
"instId": "BTCUSDT",
"orderId": "1398070744520491008",
"clientOid": "osl-global-eth-usdtXMRX3ea35dac9002006",
"size": "10000.00000",
"notional": "10000.0000",
"orderType": "market",
"force": "gtc",
"side": "buy",
"fillPrice": "110110.0",
"tradeId": "1398070744751144961",
"baseVolume": "0.09081",
"fillTime": "1769051961124",
"fillFee": "-0.00018162",
"fillFeeCoin": "BTC",
"tradeScope": "T",
"accBaseVolume": "0.09081",
"priceAvg": "110110.0",
"status": "partially_filled",
"cTime": "1769051961069",
"uTime": "1769051961149",
"feeDetail": [
{
"feeCoin": "BTC",
"fee": "-0.00018162"
}
],
"enterPointSource": "API",
"newSize": "10000.00000"
}
],
"ts": 1769051961216
}

The order is fully filled, and the order status is: filled

{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "orders",
"instId": "BTCUSDT"
},
"data": [
{
"instId": "BTCUSDT",
"orderId": "1398070744520491008",
"clientOid": "osl-global-eth-usdtXMRX3ea35dac9002006",
"size": "10000.00000",
"notional": "10000.0000",
"orderType": "market",
"force": "gtc",
"side": "buy",
"accBaseVolume": "0.09081",
"priceAvg": "110110.0",
"status": "filled",
"cTime": "1769051961069",
"uTime": "1769051961149",
"feeDetail": [
{
"feeCoin": "BTC",
"fee": "-0.00018162"
}
],
"enterPointSource": "API",
"newSize": "10000.00000"
}
],
"ts": 1769051961217
}

Subscribe request

JSON
{
"op": "subscribe",
"args": [
{
"instType": "SPOT",
"channel": "orders",
"instId": "BTCUSDT"
}
]
}

Push data format

JSON
{
"action": "snapshot",
"arg": {
"instType": "SPOT",
"channel": "orders",
"instId": "BTCUSDT"
},
"data": [
{
"instId": "BTCUSDT",
"orderId": "1398070744520491008",
"clientOid": "osl-global-eth-usdtXMRX3ea35dac9002006",
"size": "10000.00000",
"notional": "10000.0000",
"orderType": "market",
"force": "gtc",
"side": "buy",
"accBaseVolume": "0.00000",
"priceAvg": "0.0",
"status": "live",
"cTime": "1769051961069",
"uTime": "1769051961069",
"feeDetail": [],
"enterPointSource": "API",
"newSize": "10000.00000"
}
],
"ts": 1769051961102
}

Fields

FieldTypeDescription
instIdStringProduct ID
orderIdStringOrder ID
clientOidStringClient order ID
priceStringOrder price
sizeStringOrder size
notionalStringOrder amount (market buy)
orderTypeStringOrder type: limit / market
forceStringTime in force: GTC / IOC / FOK
sideStringSide: buy / sell
fillPriceStringLatest fill price
tradeIdLongLatest trade ID
baseVolumeStringLatest fill size
fillTimeLongLatest fill timestamp (ms)
fillFeeStringLatest fill fee
fillFeeCoinStringFee currency
tradeScopeStringLiquidity: taker / maker
accBaseVolumeStringAccumulated filled size
priceAvgStringAverage fill price
statusStringOrder status: live / partially_filled / filled / cancelled
cTimeStringCreated time (ms)
uTimeStringUpdated time (ms)
feeDetailArrayFee details
enterPointSourceStringOrder source
newSizeStringNew order size