I have an algo running and one of the required steps in fetching the ltp using the api. I received the following error. Since it is the fist time I received this error, I was curious as to what caused it .
Traceback (most recent call last):
File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1748, in <module>
main()
File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1690, in main
instruments[instrument].check_and_run_precalculation()
File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1514, in check_and_run_precalculation
self.pre_candle_creation_calculation()
File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 1502, in pre_candle_creation_calculation
self.tradeTickers = tradeInstrumentParams()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/abcd/PycharmProjects/DSSS/live_example_MultiAccount_normal_tickerSelection.py", line 498, in tradeInstrumentParams
n = fyers.quotes({"symbols": ticker_underlying})['d'][0]['v']['lp']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/abcd/PycharmProjects/VENV_cp/lib/python3.11/site-packages/fyers_apiv3/fyersModel.py", line 750, in quotes
response = self.service.get_call(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/abcd/PycharmProjects/VENV_cp/lib/python3.11/site-packages/fyers_apiv3/fyersModel.py", line 112, in get_call
self.error_resp["code"] = response.status_code
^^^^^^^^
UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
Exception ignored in: <module 'threading' from '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py'>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1590, in _shutdown
lock.acquire()
Was this simply a backend issue with the API which caused it?