Modify the stop-profit and stop-loss plan order
Speed limit is 10 times/s (UID)
Description
Modify the stop-profit and stop-loss plan order
HTTP Request
- POST /api/v2/mix/order/modify-tpsl-order
Request Example
curl -X POST "https://api.cointr.com/api/v2/mix/order/modify-tpsl-order" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"orderId": "1","clientOid": "2","marginCoin": "USDT","productType": "usdt-futures","symbol": "ethusdt","triggerPrice": "2001","triggerType": "fill_price","executePrice": "0","size": "2","rangeRate": ""}'
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
orderId | String | No | Take profit and stop loss order number, 'orderId' and 'clientOid' must provide one |
clientOid | String | No | Take profit and stop loss client order number, 'orderId' and 'clientOid' must provide one |
marginCoin | String | Yes | Margin currency |
productType | String | Yes | Product type usdt-futures USDT professional futures coin-futures Mixed futures usdc-futures USDC professional futures susdt-futures USDT professional futures demo scoin-futures Mixed futures demo susdc-futures USDC professional futures demo |
symbol | String | Yes | Trading pair, e.g. ETHUSDT |
triggerPrice | String | Yes | trigger price |
triggerType | String | No | Trigger type (fill_price (transaction price) mark_price (mark price) |
executePrice | String | No | Execution price (if it is 0 or not filled in, it means market price execution. If it is greater than 0, it means limit price execution. When planType (stop-profit and stop-loss type) is moving_plan (moving take-profit and stop-loss), it is not filled in and is fixed to the market price. implement.) |
size | String | Yes | Order quantity |
rangeRate | String | No | callback range |
Response Example
{
"code": "00000",
"data": {
"orderId": "121212121212",
"clientOid": "COINTR#1627293504612"
},
"msg": "success",
"requestTime": 1627293504612
}
Response Parameters
Parameter | Type | Description |
---|---|---|
orderId | String | Trigger order ID |
clientOid | String | Customized trigger order ID |