My api_key and acess_token does not work for historical data

s4n989
DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "GET /instruments/historical/136983556/60minute?to=2019-01-13+00%3A00%3A00&continuous=1&from=2019-01-01+00%3A00%3A00&instrument_token=136983556&interval=60minute HTTP/1.1" 403 None
Traceback (most recent call last):
File "fetch_stock.py", line 20, in
stock_trend = kite.historical_data(bse_stocks[10]['instrument_token'], '2019-01-01 00:00:00', '2019-01-13 00:00:00', '60minute', continuous=True)
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 608, in historical_data
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 697, in _get
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 766, in _request
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
  • sujith
    Did you re-login after you subscribed for historical data API?
Sign In or Register to comment.