fix issue with yfinance

This commit is contained in:
Ace
2024-06-23 22:25:11 +02:00
parent 8681e81e00
commit 17c13e6d8e
4 changed files with 12 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ class Stocks(inkycal_module):
logger.warning(f"Failed to get '{stockName}' ticker price hint! Using "
"default precision of 2 instead.")
stockHistory = yfTicker.history("30d")
stockHistory = yfTicker.history("1mo")
stockHistoryLen = len(stockHistory)
logger.info(f'fetched {stockHistoryLen} datapoints ...')
previousQuote = (stockHistory.tail(2)['Close'].iloc[0])