Got the Error in the Exit condition

Tarun:
Tarun This side

Tarun:
I deployed my algo on the 25th, and 5 trades were executed successfully. However, today the signal/strategy (ST) changed, but the existing position did not exit. Instead, I received an error.

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.

@Tradehull_Priya I am using Algo, and with the algo i can not enter the tpin. what you are saying, I think that will not work.

If I am doing manual buy that can be possible. could you let me know how it is possible with Algo

Hi @tarsharm20 ,

You may need to authorize once so that this issue doesn’t occur
Do refer the below link-