Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|
39 |
-
This function always returns
|
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 = {
|