Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICICI Direct Token with TOTP #119

Open
snrajan77 opened this issue Dec 14, 2024 · 1 comment
Open

ICICI Direct Token with TOTP #119

snrajan77 opened this issue Dec 14, 2024 · 1 comment

Comments

@snrajan77
Copy link

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.

@vnkx
Copy link

vnkx commented Jan 8, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants