Skip to main content

Modify TP/SL Prices on a Limit Order

Response Example

{
"success": true,
"code": 0
}
  • POST /api/v1/private/stoporder/change_price

Required Permission: Order Placing

Request Parameters:

ParameterTypeRequiredDescription
lossTrendintfalseStop-loss price type: 1 Latest Price; 2 Fair Price; 3 Index Price
profitTrendintfalseTake-profit price type: 1 Latest Price; 2 Fair Price; 3 Index Price
orderIdlongtrueLimit order ID
stopLossPricedecimalfalseStop-loss price. If both TP and SL are empty or both are 0, the order’s TP/SL will be canceled
takeProfitPricedecimalfalseTake-profit price. If both TP and SL are empty or both are 0, the order’s TP/SL will be canceled
takeProfitReverseintfalseReverse on take-profit: 1 Yes; 2 No
stopLossReverseintfalseReverse on stop-loss: 1 Yes; 2 No

Response Parameters:

Common parameters; success: true for success, false for failure