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
File "/usr/local/lib/python3.10/dist-packages/tessa/symbol/symbol.py", line 90, in price_latest
return price_latest(**self._create_price_args())
File "/usr/local/lib/python3.10/dist-packages/tessa/price/price.py", line 91, in price_latest
df, currency = price_history(query, source, currency_preference)
File "/usr/local/lib/python3.10/dist-packages/tessa/price/price.py", line 40, in price_history
df, effective_currency = src.get_price_history_bruteforcefully(
File "/usr/local/lib/python3.10/dist-packages/tessa/sources/sources.py", line 43, in get_price_history_bruteforcefully
res = self.get_price_history(query, currency_preference)
File "/usr/local/lib/python3.10/dist-packages/tessa/price/yahoo.py", line 28, in get_price_history
df = df.copy()
I was trying to get MSFT price like this:
s1 = Symbol("MSFT")
print(s1.price_latest())
Looking at the code, I think you may have to throw an exception if you cannot get the ticker price for any reason
The text was updated successfully, but these errors were encountered:
Below is the trace
I was trying to get MSFT price like this:
s1 = Symbol("MSFT")
print(s1.price_latest())
Looking at the code, I think you may have to throw an exception if you cannot get the ticker price for any reason
The text was updated successfully, but these errors were encountered: