quantyi commited on
Commit
185b0cc
·
verified ·
1 Parent(s): 5a4b19c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 for which the last closing price is required (e.g., 'AAPL' for Apple).
20
-
21
  Returns:
22
- str: The most recent closing price of the stock as a string.
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