Got the Error in the Exit condition

Hi @tarsharm20 ,

You are trying to sell existing holdings, but those stocks are not authorised for e-DIS using the CDSL TPIN. Zerodha requires this authorisation; it is a CDSL requirement.

Steps to fix:

  1. Open Zerodha Console: Login to Kite by Zerodha - Fast, easy trading and investment platform
  2. Click on Authorize
  3. Enter your CDSL TPIN
  4. Select the stocks you want to sell

After completing these steps, your API sell orders will work.