python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

FUTURE_ORDER_TYPE_LIMIT_MAKER orders not possible?

Open 1-NoLimits opened this issue 3 years ago • 4 comments

Any clue why we can't place LIMIT_MAKER orders, but any other order?

resultb =client.futures_create_order( symbol='BTCUSDT', side=Client.SIDE_BUY, positionSide = "LONG", type= Client.FUTURE_ORDER_TYPE_LIMIT_MAKER, quantity=0.01, price = 25000, timeInForce = 'GTC') print(resultb)

binance.exceptions.BinanceAPIException: APIError(code=-1116): Invalid orderType.

1-NoLimits avatar Feb 22 '22 09:02 1-NoLimits

LIMIT_MAKER is not used in futures order. For post only orders, set timeInForce to GTX.

halfelf avatar Mar 04 '22 02:03 halfelf

Thanks, but the function IS valid AND documented in Binance Python API for FUTURES. ?!

1-NoLimits avatar Mar 04 '22 03:03 1-NoLimits

Anyway, post only seems to do the same. Thanks heaps :)

1-NoLimits avatar Mar 04 '22 03:03 1-NoLimits

Not sure why we have FUTURE_ORDER_TYPE_LIMIT_MAKER = 'LIMIT_MAKER' in enums.py. There is no mention of LIMIT_MAKER in either USD or COIN futures in the API Docs.

Using TIME_IN_FORCE_GTX instead...

blksith0 avatar Jun 21 '23 03:06 blksith0