Here when I tried to sell my holdings via API it is asking for TPIN, how do I enter my TPIN via API ? I have already logged in the morning via the new daily Request Token.
I have done all the above and I am aware of TPIN and I login everyday via TPIN and also my request token I have refreshed in the morning. Still it is occurring.
It is not totp, it is holdings authorization. For non-POA clients, a broker can't move shares unless it is marked as debit-able at the depository. Hence you need to give consent for debiting shared from your demat. You can check out how to do it here.
https://support.zerodha.com/category/trading-and-markets/corporate-actions/general/articles/generate-cdsl-tpin
https://kite.trade/docs/connect/v3/portfolio/#holdings-authorisation
Maybe Sujith Sir, Rakesh Sir can help you with this.
You can check out how to do it here.
You may read more about POA here.