generate session for each run

rajagopal
Hi
I am new to programing.

i used this example (https://github.com/zerodhatech/pykiteconnect/blob/master/examples/simple.py ) with
kite.historical_data(instrument_token=instrument_token, from_date=from_date, to_date=to_date, interval=interval) to get data.

every time i run the program its asking me to login and get the request_token_here
data = kite.generate_session("request_token_here", secret="your_secret")

in doc it says once we generate teh access tocken it will be valid for whole day.

Can you please help?


This discussion has been closed.