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`.