¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Order executions when AUTOEXERCISE, ASSIGNED, or EXPIRED


 

Hi, how can we know 100% sure that an execution retrieved by execDetails is from IB system, i.e. from Exercised, Assigned, or Expired option?
I found out that OrderId is always empty, and exchange='OCC', but are these parameters 100% reliable? Any specific parameter for these executions?
See example below of such automatic executions:


 

Nobody?
I really need to identify among all executions retrieved from execDetails (after a reqExecutions) which one come from an automatic operation, such as Exercised, Assigned, Expired option, or Liquidation after a margin call.
The words 'AUTOEXERCISE', 'ASSIGNED', or 'EXPIRED' that can be seen on the TradeLog are not found in any execDetails parameter.
And even though 'OCC' exchange is displayed on the Trade Log, execDetails retrieves 'SMART' instead, so filtering on exchange can't be used.
Josh, any idea? Please!


 

Am I the only one here to try to automate ASSIGNED, or EXPIRED option prices retrieval?


 

Hi Francois,

Did you find a solution for your issue? I'm facing something similar but do not have a good idea so far.?


 

Has anyone found a way to figure out if there was "ASSIGNMENT", "EXPIRATION" etc in the portfolio? This keeps the automation incomplete.

Regards,
Pratik Babhulkar