Spaces:
Running
Running
Commit
·
541388d
1
Parent(s):
ee48331
app.py
CHANGED
@@ -81,7 +81,7 @@ def period_to_start_end(period_str: str):
|
|
81 |
start = now - dt.timedelta(weeks=13)
|
82 |
return start, now
|
83 |
|
84 |
-
|
85 |
def get_stock_prices(ticker: str) -> Union[Dict, str]:
|
86 |
"""Fetches historical stock price data and technical indicator for a given ticker."""
|
87 |
try:
|
@@ -148,7 +148,7 @@ def get_stock_prices(ticker: str) -> Union[Dict, str]:
|
|
148 |
except Exception as e:
|
149 |
return f"Error fetching price data: {str(e)}"
|
150 |
|
151 |
-
|
152 |
def get_financial_news(ticker: str) -> Union[Dict, str]:
|
153 |
"""Fetches the latest financial news related to a given ticker."""
|
154 |
try:
|
@@ -170,7 +170,7 @@ def get_financial_news(ticker: str) -> Union[Dict, str]:
|
|
170 |
except Exception as e:
|
171 |
return f"Error fetching news: {str(e)}"
|
172 |
|
173 |
-
|
174 |
def get_financial_metrics(ticker: str) -> Union[Dict, str]:
|
175 |
"""Fetches key financial ratios for a given ticker."""
|
176 |
try:
|
|
|
81 |
start = now - dt.timedelta(weeks=13)
|
82 |
return start, now
|
83 |
|
84 |
+
|
85 |
def get_stock_prices(ticker: str) -> Union[Dict, str]:
|
86 |
"""Fetches historical stock price data and technical indicator for a given ticker."""
|
87 |
try:
|
|
|
148 |
except Exception as e:
|
149 |
return f"Error fetching price data: {str(e)}"
|
150 |
|
151 |
+
|
152 |
def get_financial_news(ticker: str) -> Union[Dict, str]:
|
153 |
"""Fetches the latest financial news related to a given ticker."""
|
154 |
try:
|
|
|
170 |
except Exception as e:
|
171 |
return f"Error fetching news: {str(e)}"
|
172 |
|
173 |
+
|
174 |
def get_financial_metrics(ticker: str) -> Union[Dict, str]:
|
175 |
"""Fetches key financial ratios for a given ticker."""
|
176 |
try:
|