If I close my short option position before the close, am I at risk of being assigned on that contract?

Option assignments are determined based on net positions after the close of the market each day and if you bought back your short contract, you no longer have a short position at the end of the day and no possibility of assignment.

Powered by IBot
How do I close a short position in TWS?
What can I do when I am early assigned on my short option?
What happens to my long stock position if a short option which is part of a covered write is assigned?
Are positions resulting from option exercise or assignment counted for PDT purposes?