bstraehle commited on
Commit
42c6195
1 Parent(s): a31fc9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -32,11 +32,11 @@ def today_tool(text: str) -> str:
32
  This function always returns today's date."""
33
  return str(date.today())
34
 
35
- def yfinance_download_tool(tickers: str[], start: date, end: date) -> str:
36
- """Returns stock data for given tickers from a start date to an end date.
37
  Use this function for any questions related to getting stock data.
38
- The input should be a string array of tickers, a start date, and an end date.
39
- This function always returns yf.download."""
40
  return yf.download(tickers, start=start_date, end=end_date)
41
 
42
  tools = {
 
32
  This function always returns today's date."""
33
  return str(date.today())
34
 
35
+ def yfinance_download_tool(tickers: List[str], start: date, end: date) -> DataFrame:
36
+ """Returns stock data for given tickers from a start date to an end date using yfinance download.
37
  Use this function for any questions related to getting stock data.
38
+ The input should be the tickers as a list of strings, a start date, and an end date.
39
+ This function always returns a Pandas DataFrame."""
40
  return yf.download(tickers, start=start_date, end=end_date)
41
 
42
  tools = {