Viewing Log: read_nifty_bank.py
Status:
stopped
Start: Feb. 9, 2026, 8:08 a.m.
End: Feb. 9, 2026, 8:10 a.m.
Log Output
Polling BANKNIFTY 1-minute candle every 10 seconds...
2026-02-09 13:38:03.424269+05:30 | ERROR: Incorrect `api_key` or `access_token`.
2026-02-09 13:38:13.441782+05:30 | ERROR: Incorrect `api_key` or `access_token`.
2026-02-09 13:38:23.461088+05:30 | ERROR: Incorrect `api_key` or `access_token`.
Traceback (most recent call last):
File "/home/ubuntu/encore/scripts/read_nifty_bank.py", line 26, in
candles = kite.historical_data(
^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/encore/algoenv/lib/python3.11/site-packages/kiteconnect/connect.py", line 632, in historical_data
data = self._get("market.historical",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/encore/algoenv/lib/python3.11/site-packages/kiteconnect/connect.py", line 861, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/encore/algoenv/lib/python3.11/site-packages/kiteconnect/connect.py", line 937, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/encore/scripts/read_nifty_bank.py", line 49, in
time.sleep(10)
KeyboardInterrupt