Hi,
I want to retrieve all open positions for a contract and then close them if the time is close to market closure (like 3:45 pm). Is there a way to do that in tws python api?