session is expiring before logging in
Anirudh-1213 opened this issue · comments
Anirudh-1213 commented
`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)`
noname commented
@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)