closePosition parameter with Stop order doesn't work


when I use the quantity parameter with my Stop order it works well.
But I need to set the Stop order without quantity and closePosition: true.

No matter which combination I try to send this parameter it doesn’t work, the stop order won’t be executed.

params_stop = {
“side”: “SELL”,
“type”: “STOP”,
“price”: SLprice,
“timeInForce”: “GTC”,
“stopPrice”: SLstop,
“closePosition”: “true”,


I tried all combinations with type: “STOP”, “STOP_MARKET”, “closePosition”: true, "true, “True,”, True

What am I doing wrong?

Please attach the error message you received upon sending this request.

I solved it. The price stop value was unnecessary

1 Like