Not Able to call Historical Data

samg8
samg8 edited August 2019 in Python client
Hey,

I have taken the subscription of historical data and then invalidated the access token also regenerated the API secret and did re-login , but after doing all these steps, still I am getting the following exception and I could continue to call other APIs successfully though,

kiteconnect.exceptions.InputException: invalid token

Need help to resolve this
Tagged:
  • rishiswethan
    This is not a subscription issue. Call this function and see it's result

    kite.instruments('NSE')

    You'll see a dict of stock names and token_ids. You need to feed the token_id that corresponds to the stock name to the instrument_token argument
  • samg8
    Thanks it worked
Sign In or Register to comment.