POSITION_SIDE_NOT_MATCH

Hello,

I have activated Hedge mode and I’m trying to place a LIMIT Order with the fallowing parameters:

params = {
“symbol”: “BTCUSDT”,
“side”: “BUY”,
“type”: “LIMIT”,
“quantity”: 0.001,
“limit”: 11730,
“recvWindow”:“20000”

}

I get this error: {‘code’: -4061, ‘msg’: “Order’s position side does not match user’s setting.”}

Does anybody knows why?

Regards,

Orlando Gautier

check which trade mode is turned on, Enable Hedge Mode on Futures API