Not able to access historical data via API

sumedhds
I have both subscriptions, for API and historical data. I did multiple time revoke and grant access to my app, I could able to place order's though.
This code is failing

df = pd.DataFrame(kite.positions()["day"])
Or
data = pd.DataFrame(kite.historical_data(instrument,dt.date.today()-dt.timedelta(duration), dt.date.today(),interval))
break
except:
print("can't extract position data..retrying")

This
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
Incorrect `api_key` or `access_token`.
  • sujith
    Did you re-generate access token after subscribing to historical data API?
  • sumedhds
    sumedhds edited September 2020
    more than 5 times in last 24 hours
  • dinezh
    incase if you automated your login
    generate and assign the api_key access_token manually and if it worked then
    definitely you're having issues with your automation code
Sign In or Register to comment.