can't close my futures orders

hi friends when i has order when i want close this order still get error code
api its v1/order

my params as below:

{
type: ‘TAKE_PROFIT_MARKET’,
stopPrice: 0.08,
symbol: ‘TRXUSDT’,
closePosition: true,
side: ‘SELL’,
quantity: 100,
positionSide: ‘SHORT’
}

type i i try LIMIT,MARKET,STOP,STOP_MARKET,TAKE_PROFIT,TAKE_PROFIT_MARKET,TRAILING_STOP_MARKET

all of them get wrong code.

{
code: -1128,
msg: ‘Combination of optional parameters invalid.’
}

who can help me , i wanna stop the order。

  • Since you’re using TAKE_PROFIT_MARKET , you need to wait for the stopPrice to be triggered to place market order and close the position.
  • You can’t use quantity and closePosition at same time, if closePosition=true then it’ll close with open position’s quantity. Stated in https://binance-docs.github.io/apidocs/futures/en/#new-order-trade.
  • The open position’s side is SELL, the close order should have side=BUY

Ex:
POST https://testnet.binancefuture.com/fapi/v1/order?symbol=TRXUSDT&side=BUY&positionSide=BOTH&type=TAKE_PROFIT_MARKET&stopPrice=0.082&closePosition=true&timestamp=xxx&signature=xxx

many thanks i will try it for you comment .