DevKX commited on
Commit
cddca78
·
verified ·
1 Parent(s): 194e491

Update src/data_fetcher.py

Browse files
Files changed (1) hide show
  1. src/data_fetcher.py +1 -1
src/data_fetcher.py CHANGED
@@ -86,7 +86,7 @@ class DataFetcher:
86
  # 🛡️ STREAMLIT CACHE: Ignores '_self' so it doesn't try to hash the Finnhub client.
87
  # ttl=3600 caches the news for 1 hour so repeated button clicks load instantly.
88
  @st.cache_data(ttl=3600, show_spinner=False)
89
- def fetch_market_news(_self, days=45):
90
  """
91
  Fetches historical market news by looping through days.
92
  Uses 'SPY' as a proxy to allow historical date filtering on Finnhub.
 
86
  # 🛡️ STREAMLIT CACHE: Ignores '_self' so it doesn't try to hash the Finnhub client.
87
  # ttl=3600 caches the news for 1 hour so repeated button clicks load instantly.
88
  @st.cache_data(ttl=3600, show_spinner=False)
89
+ def fetch_market_news(_self, days=7):
90
  """
91
  Fetches historical market news by looping through days.
92
  Uses 'SPY' as a proxy to allow historical date filtering on Finnhub.