After successfully placed a Limit order, I’m trying to place a Market order but got error message if I sent timeInForce value (any of the options) like:
submit_future_order(symbol=‘1INCHUSDT’, side=‘BUY’, positionSide=‘LONG’, type=‘MARKET’, quantity=‘10’, price=None, timeInForce=‘GTC’)
error message:
{‘code’: -1106, ‘msg’: “Parameter ‘timeInForce’ sent when not required.”}
If I don’t send the timeInForce value like:
submit_future_order(symbol=‘1INCHUSDT’, side=‘BUY’, positionSide=‘LONG’, type=‘MARKET’, quantity=‘10’, price=None, timeInForce=’’)
submit_future_order(symbol=‘1INCHUSDT’, side=‘BUY’, positionSide=‘LONG’, type=‘MARKET’, quantity=‘10’, price=None, timeInForce=None)
The error message turns to:
{‘code’: -1115, ‘msg’: ‘Invalid timeInForce.’}
anything advice?