Fyers API giving error. Exception in thread 091713:
Traceback (most recent call last):
File “C:\Users\arind\Anaconda3\lib\threading.py”, line 917, in _bootstrap_inner
self.run()
File “C:\Users\arind\Anaconda3\lib\threading.py”, line 865, in run
self._target(*self._args, **self._kwargs)
File “C:\Users\arind\FyersAPI\Scheduled\MainControl.py”, line 2209, in order_5min
if df_ord_hist[‘code’] != 200:
TypeError: ‘NoneType’ object is not subscriptable
hey Arindam,
What do you get when you print df_ord_hist?
It is coming from df_ord_hist = acc_info[‘fyers’].orderbook(). Basically I am calling orderbook() and when I do df_ord_hist[‘code’] != 200, I got error. This is intermettent error. Yesterday morning it happened and today morning it happened. Now this is not happening.
Hi @vikram_sri , any update on this? Today there was no problem. Is this permanently fixed?