trace order
Trace Order
Set a tracking exit order. This API is supported only in cross margin mode with merged positions and an existing position.
Request frequency limit: 1/1s
Request URL
POST /deepcoin/trade/trace-order
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| instId | true | string | Product ID |
| retracePoint | true | string | pullback spread |
| triggerPrice | true | string | Activation price. 0: cancel tracking exit; -1: activate immediately; positive price: set or amend the activation price and must maintain a price difference of 0.1% from the latest price. Other values are invalid. |
| posSide | true | string | Position side product type must be SWAPLong: longShort: short |
Request Example
Set tracking exit:
{
"instId": "BTC-USDT-SWAP",
"retracePoint": "1000",
"triggerPrice": "-1",
"posSide": "long"
}
Response Parameters
None
Response Example
{
"code": "0",
"msg": "",
"data": {}
}
Get pending trace order list
Request frequency limit: 1/1s
Request URL
GET /deepcoin/trade/trace-order-list
Request Parameters
| Field Name | Required | Type | Description |
|---|---|---|---|
| instId | true | string | Product ID |
Response Parameters
| Field Name | Type | Description |
|---|---|---|
| retracePoint | string | pullback spread |
| triggerPrice | string | activation price |
| breakPrice | string | breakout price |
| isTriggered | int | activated or not,1:activated,0:not activated |
| posSide | string | Position side Long: longShort: short |
| createTime | int | created time |
Response Example
{
"code":"0",
"msg":"",
"data":[
{
"triggerPrice":"87195",
"breakPrice":"87329.8",
"retracePoint":"1500",
"isTriggered":1,
"posSide":"long",
"createTime":1763954015
}
]
}