Failed to Fetch Data. Status Code: 400

humanmedia
Suddenly I am not able to fetch data. Status Code:400 . It was working perfectly earlier.

Please help.

url = "https://api.kite.trade/instruments/historical/" + str(niftytoken) + "/" + str(tframe) + "minute?from=" + frm + "&to=" + to
a = requests.get(url, headers={"X-Kite-Version": "3", "Authorization": "enctoken " + kite_login.self.sessions[user_id][0]})
print(a,"url is working ",url)
print(a.status_code,"statuscode")





Sign In or Register to comment.