Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,12 +14,12 @@ from Gradio_UI import GradioUI
|
|
| 14 |
def get_last_prices(ticker: str) -> str:
|
| 15 |
"""
|
| 16 |
Fetches the most recent closing price for the specified stock ticker from Yahoo Finance.
|
| 17 |
-
|
| 18 |
Args:
|
| 19 |
-
ticker (str): The stock symbol
|
| 20 |
-
|
| 21 |
Returns:
|
| 22 |
-
str: The
|
| 23 |
"""
|
| 24 |
stock = yf.Ticker(ticker)
|
| 25 |
|
|
|
|
| 14 |
def get_last_prices(ticker: str) -> str:
|
| 15 |
"""
|
| 16 |
Fetches the most recent closing price for the specified stock ticker from Yahoo Finance.
|
| 17 |
+
|
| 18 |
Args:
|
| 19 |
+
ticker (str): The stock symbol (e.g., 'AAPL' for Apple) for which to retrieve the last closing price.
|
| 20 |
+
|
| 21 |
Returns:
|
| 22 |
+
str: The last available closing price as a string.
|
| 23 |
"""
|
| 24 |
stock = yf.Ticker(ticker)
|
| 25 |
|