Hi all, I am about to write a bit of code to close a position on the underlying, in case I write an option and get assigned.
Let's say I write an option and at expiration time is ITM, then I get assigned a position on the underlying.
Is there any configuration I could change on my account to let IBKR close that position immediately?
My initial idea was to write a watcher on the account, and at the expiration time check if there is anything on the underlying and close it. Am I overcomplicating it?
Let's say I write an option and at expiration time is ITM, then I get assigned a position on the underlying.
Is there any configuration I could change on my account to let IBKR close that position immediately?
My initial idea was to write a watcher on the account, and at the expiration time check if there is anything on the underlying and close it. Am I overcomplicating it?