sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.06k stars 2.21k forks source link

FUTURE_ORDER_TYPE_LIMIT_MAKER orders not possible? #1149

Open 1-NoLimits opened 2 years ago

1-NoLimits commented 2 years ago

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.

halfelf commented 2 years ago

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

1-NoLimits commented 2 years ago

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

1-NoLimits commented 2 years ago

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

blksith0 commented 1 year ago

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...