Skip to main content

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 URL​

POST /deepcoin/trade/trace-order

Request Parameters​

Field NameRequiredTypeDescription
instIdtruestringProduct ID
retracePointtruestringpullback spread
triggerPricetruestringActivation 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.
posSidetruestringPosition side
product type must be SWAP
Long: long
Short: 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 URL​

GET /deepcoin/trade/trace-order-list

Request Parameters​

Field NameRequiredTypeDescription
instIdtruestringProduct ID

Response Parameters​

Field NameTypeDescription
retracePointstringpullback spread
triggerPricestringactivation price
breakPricestringbreakout price
isTriggeredintactivated or not,1:activated,0:not activated
posSidestringPosition side
Long: long
Short: short
createTimeintcreated time

Response Example​

{ 
"code":"0",
"msg":"",
"data":[
{
"triggerPrice":"87195",
"breakPrice":"87329.8",
"retracePoint":"1500",
"isTriggered":1,
"posSide":"long",
"createTime":1763954015
}
]
}