trying to fetch historical data

dexter1234
I am trying to fetch historical data for a symbol. I followed the example on python client and i can get the redirect url using the following snippet. I followed the redirect url but do not get the request token on browser. What am i missing here?

import logging
from kiteconnect import KiteConnect
import requests

logging.basicConfig(level=logging.DEBUG)

kite = KiteConnect(api_key="xxxx")

login = kite.login_url()
response = requests.get(login)
redirect_url = response.history[1].headers['Location']

# redirect url is https://kite.zerodha.com/connect/login?api_key=xxxx&sess_id=yyyy'



Sign In or Register to comment.