Hey Akshay,
You have to pay the STT when you close the I.T.M contract yourself, the applicable STT for options are mentioned here.
You can check the Nithin sir’s post on STT articulation to know the applicable STT in the above-mentioned scenarios. Please read the post here.