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`.
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
generate and assign the api_key access_token manually and if it worked then
definitely you're having issues with your automation code