Hi guys,
I algo trade 0DTE option combos on ETFs and I would like to be able to take action when a liquidation warning happens or when a position is liquidated due to unsufficient margin.
If these messages can't be caught through API, how could I monitor margin?
I know that the Execution class has a liquidation property set to 1 if the execution was an IB liquidation:


I would something to continuously monitor for warning/liquidation in order to take action when it happens.
How could this be approached?
Thank you!
F