Skip to main content

Modify TP/SL Prices on a TP/SL Planned Order

Response Example

{
"success": true,
"code": 0
}
  • POST /api/v1/private/stoporder/change_plan_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
stopPlanOrderIdlongtrueTP/SL planned order ID
stopLossPricedecimalfalseStop-loss price. At least one of TP/SL must be non-empty and greater than 0
takeProfitPricedecimalfalseTake-profit price. At least one of TP/SL must be non-empty and greater than 0
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