You can request a list of all today¡¯s executions, and/or set up to receive both order and execution (and commission report) records every time they are created.
Then you can either store them in a database to maintain ¡°state¡± with IB, or just hold them in memory to work out which are part of the current open positions.