Lets say i am entering a position using EnterLong(100,"MyName"). MyName is used as trade identifier.
Now when OnExecutionUpdate() event is triggered, the orderId string is some numbers and not "MyName" string. So hpw can i compare the two and verify to what EnterLong() the event was triggered?
Here is the entire OnExecutionUpdate() as string:
OnExecutionUpdate(): execution='20b45c74e13a46c7ac32219f176fa0bf' instrument='MES 09-20' account='Playback101' exchange=Default price=3204.25 quantity=76 marketPosition=Long orderId='20131f103949480db2aa2bc5b815676d' time='2020-07-17 07:00:01' sod=False statementDate='2020-07-17'
NOTE - at 1st i created a dynamic string based on date+time. After it didnt work (cant find it), i changed just for test into string "EZRA1234" which isnt there as well.
Comment