Modify Stop Order
Info
- This endpoint requires signature. For specific signature rules, please refer to Authentication
- This endpoint will trigger rate limit. For specific rules, please refer to Rate Limit.
Dangerous
- Modifying an order will cancel the old order and create a new order.The old stop_id will be invalid after order modification.
HTTP request
POST /spot/modify-stop-order
Request parameters
Parameter Name | Required | Type | Notes |
---|---|---|---|
market | true | string | Market name |
market_type | true | string | Market type. Note: In spot related functions, only SPOT or MARGIN can be used. In futures related functions, only FUTURES can be used. |
stop_id | true | int | Stop order ID |
amount | false | string | Order amount, which should include at least one of the three parameters, amount/price/trigger_price |
price | false | string | Order price, which should include at least one of the three parameters, amount/price/trigger_price |
trigger_price | false | string | Stop order trigger price, which should include at least one of the three parameters, amount/price/trigger_price |
Return parameter
Parameter Name | Type | Notes |
---|---|---|
stop_id | int | Stop order ID |
Request example
{
"market": "CETUSDT",
"market_type": "MARGIN",
"stop_id": 13213,
"amount": "10000",
"price": "1",
"trigger_price": "1.1"
}
Response example
{
"code": 0,
"data": {
"stop_id": 287330817
},
"message": "OK "
}