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

session is expiring before logging in #48

Open
Anirudh-1213 opened this issue Sep 25, 2022 · 1 comment
Open

session is expiring before logging in #48

Anirudh-1213 opened this issue Sep 25, 2022 · 1 comment

Comments

@Anirudh-1213
Copy link

`from jugaad_trader import Zerodha

user_id = "USERID"
password = "PASSWORD"
pin = "PIN"

kite = Zerodha(user_id, password, pin)

print(kite.login())

print(kite.orders())

Set access token loads the stored session.

Name chosen to keep it compatible with kiteconnect.

Get profile

print(profile := kite.profile())

Get margin

margins = kite.margins()
print(margins)

Get holdings

holdings = kite.holdings()
print(holdings)

Get today's positions

positions = kite.positions()
print(positions)

Get today's orders

orders = kite.orders()
print(orders)`

@ssheikh098
Copy link

ssheikh098 commented Sep 25, 2022

@Anirudh-1213 i think Zerodha is forcing to use TOTP from Sep 23rd so you need to use TOTP code as mentioned in defect 45. (#45)

https://support.zerodha.com/category/your-zerodha-account/login-credentials/login-credentials-of-trading-platforms/articles/enable-device-lock

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