You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not seen a bug in execution, but reading this code in ranaroussi/yfinance/feature/prune-info/yfinance/scrapers/quote.py, it appears wrong to me.
I do not understand where this k gets a value in _scrape_complementary()
line 293: if k not in key_stats:
json_data = json.loads(json_str)
key_stats = json_data["timeseries"]["result"][0]
if k not in key_stats:
# Yahoo website prints N/A, indicates Yahoo lacks necessary data to calculate
v = None
else:
# Select most recent (last) raw value in list:
v = key_stats[k][-1]["reportedValue"]["raw"]
self._info[k] = v
The text was updated successfully, but these errors were encountered:
I would not mind submitting a fix, but I am not now set up to do development on yfinance. I know it is basically a git clone, then edit the file, push, and test. However, my code files and virtual environments are such a mess that it will take a while before that can be sanitary.
I just noticed this whilst browsing the code. I do not even have a test case.
I will eventually get straightened out, but thought it best to expose the issue sooner.
I have not seen a bug in execution, but reading this code in ranaroussi/yfinance/feature/prune-info/yfinance/scrapers/quote.py, it appears wrong to me.
I do not understand where this
k
gets a value in_scrape_complementary()
line 293:
if k not in key_stats:
ranaroussi/yfinance/feature/prune-info/yfinance/scrapers/quote.py: 290 .. 299
The text was updated successfully, but these errors were encountered: