Open bmw7 opened 1 year ago
I believe binance has provided an explict instruction in document about this:
STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:
Follow the same rules for condition orders. If triggered,close all current long position( if SELL) or current short position( if BUY). Cannot be used with quantity paremeter Cannot be used with reduceOnly parameter In Hedge Mode,cannot be used with BUY orders in LONG position side. and cannot be used with SELL orders in SHORT position side
I use the following codes to take profit market
client.futures_create_order(symbol='ETHUSDT', side='SELL', positionSide='LONG', type='TAKE_PROFIT_MARKET', stopPrice=1800, closePosition='true')
BUT I cannot set the quantity. How to set quantity ? thanks!