Hi,
I was trying to run the code but saw this error. Can you help with this?
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/multitasking/init.py", line 102, in _run_via_pool
return callee(*args, **kwargs)
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/multi.py", line 167, in _download_one_threaded
data = _download_one(ticker, start, end, auto_adjust, back_adjust,
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/multi.py", line 179, in _download_one
return Ticker(ticker).history(period=period, interval=interval,
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/yfinance/base.py", line 157, in history
data = data.json()
File "/Users/ramansingh/OneDrive - weizmann.ac.il/PyCharms new/Trading/venv/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)