Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
60 stars 30 forks source link

API session key generation issue #15

Open venkat-natchi opened 1 year ago

venkat-natchi commented 1 year ago

If I go to the url printed by the following snippet for my api_key.

# Obtain your session key from https://api.icicidirect.com/apiuser/login?api_key=YOUR_API_KEY
# Incase your api-key has special characters(like +,=,!) then encode the api key before using in the url as shown below.
import urllib
print("https://api.icicidirect.com/apiuser/login?api_key="+urllib.parse.quote_plus("your_api_key"))

It prompts me to login using the icici direct credentials.

then, I get the following message

image

And finally gets landed on this page. From here, I am not sure how to get the session key.

image
venkat-natchi commented 1 year ago

I got the API session key from the url.

It would be worth mentioning about how to get the key from the url in the documentation.