Logging in to alice blue

Tried logging in to alice blue using
from alice_blue import *
access_token = AliceBlue.login_and_get_access_token(username=‘xxxx’, password=‘xxxx’, twoFA=‘a’, api_secret=‘xxx’)
but it is returning access token as none.

1 Like

This python module of alice_blue is not using the Oauth Module. Alice blue charges 500 INR for account-specific API but the one we have has the power to login to multiple accounts opened under specific sub-brokers.

I have given you the exact code for using OAuth Module in Slack as well as given a video demonstration on how to use it.

Happy trading!

PS: You can code the logic from there to this python module and this module will work as well. This module is coded by Krishna. He may have patches for making Oauthway work. Ask him personally in Slack.


which code you are talking about ?
can you please tell me


Can you please point me to a proper script to work with alice blue API. I have the API key, username and password. i am using krishna library as a wrapper to login but i am unable to login so far. just did a workaround by copying session token by manually login in and using it in the krishna’s script.

Thanks for your help.