It looks like you're new here. If you want to get involved, click one of these buttons!
from kiteconnect import KiteConnect
import os
import datetime as dt
import pandas as pd
cwd = os.chdir("D:/Backup/Desktop/Zerodha")
#generate trading session
access_token = open("access_token.txt",'r').read()
key_secret = open("api_key.txt",'r').read().split()
kite = KiteConnect(api_key=key_secret[0])
kite.set_access_token(access_token)
records=kite.historical_data(1270529, "2020-12-01", "2021-01-28", "5minute",continuous=False)