Yes it´s a little bid tricky.
After connect() you get the next ID-number with
the ValidId() Event.
If you invoke reqOpenOrders() or reqExecutions()
to fill own spread sheets, this ID Number will be incremented
with every new openOrder1 Event.
I use something like...