openalgo icon indicating copy to clipboard operation
openalgo copied to clipboard

ICICI Direct Token with TOTP

Open snrajan77 opened this issue 1 year ago • 1 comments

As you aware that after activating the API in Breeze you need to have get the token for the login, As I am using python, I have enabled the TOTP with Authy and using the same with auto login. but I am not able to log in to the Openalgo after the activation. I am getting error message 'Public Key does not exist'. As there is no option for the token. pls extend your support and enable the same with ICICI.

snrajan77 avatar Dec 14 '24 17:12 snrajan77

The issue here is that the api_key has to be encoded as it will be used in the URL. To fix this issue, do the following:

In the broker_login function (blueprints/auth.py) add these three lines after the broker_name is set in line 63: if broker_name == 'icici': import urllib BROKER_API_KEY = urllib.parse.quote_plus(BROKER_API_KEY)

vnkx avatar Jan 08 '25 08:01 vnkx

Icicidirect is now removed from our newer versions. have to close this ticket for time being as we stopped supporting icicidirect.

marketcalls avatar Jun 23 '25 05:06 marketcalls