Update func.py
Browse files
func.py
CHANGED
@@ -105,7 +105,7 @@ def analyze_sentiment(
|
|
105 |
# Web-scraping helper (Finviz)
|
106 |
# ---------------------------------------------------------------------------
|
107 |
|
108 |
-
def fetch_news(ticker: str, max_items: int =
|
109 |
"""Return up to *max_items* latest Finviz headlines for *ticker*.
|
110 |
|
111 |
Result format:
|
|
|
105 |
# Web-scraping helper (Finviz)
|
106 |
# ---------------------------------------------------------------------------
|
107 |
|
108 |
+
def fetch_news(ticker: str, max_items: int = 30) -> List[dict]:
|
109 |
"""Return up to *max_items* latest Finviz headlines for *ticker*.
|
110 |
|
111 |
Result format:
|