Why am I getting this error? "Parameter 'stopLimitPrice' sent when not required."

I’m getting this error when making OCO sell order on DATAUSDT.

{
“code”: -1106,
“msg”: “Parameter ‘stopLimitPrice’ sent when not required.”
}

How to avoid these weird types of errors completely when making OCO orders???
:disappointed_relieved:

What are the parameters you sent? Please post your query.

const queryString = ‘symbol=${pair}&side=SELL&quantity=${baseBalanceIHave}&price=${+%1}&stopPrice=${-%0.3}&stopLimitPrice=${-%0.4}&stopLimitTimeInForce=GTC&timestamp=${Date.now()}

According to the API docs, type=… is a mandatory parameter, which you seem to be missing. You need to specify (based on the info for DATAUSDT) either STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT. Not sure why the API is complaining about the stop price; seems the lack of order type would be a more fundamental error.

This doesn’t make any sense because Binance has a special endpoint for OCO orders:

POST /api/v3/order/oco

So why would we want to add the type parameter?
Also, I made many successful orders without adding the type.

As for telling that

You need to specify (based on the info for DATAUSDT) either STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT

Al the symbols share the EXACT same orderTypes like this:

“orderTypes”: [
“LIMIT”,
“LIMIT_MAKER”,
“MARKET”,
“STOP_LOSS_LIMIT”,
“TAKE_PROFIT_LIMIT”
]

And this thing makes the errors below so weird because sometimes the order is placed successfully and sometimes not!!!

“Parameter ‘stopLimitPrice’ sent when not required.”
“Parameter ‘stopPrice’ sent when not required.”

So, why would these errors appear when all the symbols share the exact same order types???

My apologies, I missed the OCO part. I’ll defer to someone else who knows better.

can you share the exactly parameters that returned the error? Also the error message, error code, etc.

thanks