symbol=“ETHUSDT”
a = client.futures_position_information(symbol=symbol)
for name in a:
if name[‘positionSide’] == “SHORT”:
print(name[‘positionSide’])
if float(name[‘positionAmt’]) < 0 or float(name[‘unRealizedProfit’]) > 0:
print(name)
print(f"{name[‘positionAmt’]} \n \n")
try:
print(f"sending try except long short futures order quantity is ")
futuresOrder = client.futures_create_order(symbol=symbol, type=‘MARKET’, side=“BUY”, positionSide=‘LONG’, quantity=float(name[‘positionAmt’]))
except Exception as e:
print("An exception Occurred {} ".format(e))
but i am getting this error