I am unable to close the open positions like BINANCE future interface did. Can anyone guide me that I am right path. Currently I am try to close the positions using create orders api with below parameters. I have 2 sale orders in open positions and I want close them. I trying to implement same behavior as BINANCE future close all position did.
Binance.futures_create_order(symbol=self.symbol, side=‘BUY’, type=‘Limit’,closePosition=true)