trying to fetch historical data

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


kite = KiteConnect(api_key="xxxx")

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

# redirect url is'

Sign In or Register to comment.