Spaces:
Sleeping
Sleeping
updated instructions
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
-
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
import pytz
|
|
@@ -13,8 +13,10 @@ from Gradio_UI import GradioUI
|
|
| 13 |
@tool
|
| 14 |
def fetch_historical_price_data(symbol: str, start_date: str) -> list[dict]:
|
| 15 |
"""
|
| 16 |
-
Fetch daily historical stock price data for a given stock symbol
|
| 17 |
-
toda=datetime.now() to confirm the
|
|
|
|
|
|
|
| 18 |
|
| 19 |
Args:
|
| 20 |
symbol: Stock market symbol such as 'AAPL', 'MSFT', 'NVDA'
|
|
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
+
import datetime
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
import pytz
|
|
|
|
| 13 |
@tool
|
| 14 |
def fetch_historical_price_data(symbol: str, start_date: str) -> list[dict]:
|
| 15 |
"""
|
| 16 |
+
Fetch daily historical stock price data for a given stock symbol from the start_date. Use
|
| 17 |
+
toda=datetime.now() to confirm the start_Date is valid prior to calling the API. You only need to make sure
|
| 18 |
+
the start_date is not greater than today's date. If it is equal to today's date you can send today's date as the API
|
| 19 |
+
will output the stock price information for the day.
|
| 20 |
|
| 21 |
Args:
|
| 22 |
symbol: Stock market symbol such as 'AAPL', 'MSFT', 'NVDA'
|