I am unable to download the historical data using kite API. My code ends up giving an error saying
kiteconnect.exceptions.TokenException: Invalid API credentials
I am using the same request token to request position and instruments,Everything is working fine. When I request historical data it ends up giving this error why is that?