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
| Parameter | Type | Comments |
|---|---|---|
| topic | string | Topic name |
| ts | number | The timestamp (ms) that message is sent out |
| type | string | Data type. snapshot |
| data | array | Object |
| > e | string | Event type |
| > E | string | Event time |
| > s | string | Trading pair |
| > c | string | User-generated order ID |
| > S | string | BUY: buy order, SELL: sell order |
| > o | string | Order type. LIMIT, MARKET_OF_QUOTE(Market Buy), MARKET_OF_BASE(Market Sell) |
| > f | string | Time in force |
| > q | string | Order quantity |
| > p | string | Order price |
| > X | string | Order status |
| > i | string | Order ID |
| > T | string | Order created timestamp (ms) |
| > t | string | TP/SL order triggered timestamp (ms). The field has value only when order status is ORDER_FILLED and ORDER_FAILED |
| > C | string | Order updated time. It is updated when order status is changed |
| > qp | string | The market price when place the order |
| > eo | string | The new order ID after the TP/SL order is triggered |
| > ti | string | Please ignore |
| > si | string | Please ignore |
| > tp | string | Trigger 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"
}
]
}