Skip to main content

Stop Order

This topic pushes conditional order, TP/SL order information placed by web/app channel, and TP/SL order information placed by open api channel. It'll be triggered as long as order status is changed

Push frequency: real-time

Topic: stopOrder

Response Parameters

ParameterTypeComments
topicstringTopic name
tsnumberThe timestamp (ms) that message is sent out
typestringData type. snapshot
dataarrayObject
> estringEvent type
> EstringEvent time
> sstringTrading pair
> cstringUser-generated order ID
> SstringBUY: buy order, SELL: sell order
> ostringOrder type. LIMIT, MARKET_OF_QUOTE(Market Buy), MARKET_OF_BASE(Market Sell)
> fstringTime in force
> qstringOrder quantity
> pstringOrder price
> XstringOrder status
> istringOrder ID
> TstringOrder created timestamp (ms)
> tstringTP/SL order triggered timestamp (ms). The field has value only when order status is ORDER_FILLED and ORDER_FAILED
> CstringOrder updated time. It is updated when order status is changed
> qpstringThe market price when place the order
> eostringThe new order ID after the TP/SL order is triggered
> tistringPlease ignore
> sistringPlease ignore
> tpstringTrigger price

Subscribe Example

{
"req_id": "stopOrder_1", //optional
"op": "subscribe",
"args": [
"stopOrder"
]
}

Stream Example

{
"type": "snapshot",
"topic": "stopOrder",
"ts": "1678689442476",
"data": [
{
"e": "stopOrder",
"E": "1678689442476",
"s": "XRPUSDT",
"c": "1678689442086",
"S": "BUY",
"o": "LIMIT",
"f": "GTC",
"q": "100",
"p": "0.335",
"X": "ORDER_NEW",
"i": "1375341158856660992",
"T": "1678689442437",
"t": "0",
"C": "1678689442437",
"qp": "0.3666",
"eo": "1375341158856660993",
"ti": "209a1cc923e1322315805fea6ed6fcbf",
"si": "d980d5212ea83c87",
"tp": "0.33"
}
]
}