cpatino10 commited on
Commit
f48f2cd
·
verified ·
1 Parent(s): a5f9c57

updated instructions

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
- from datetime import datetime
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 between start_date and end_date. Use
17
- toda=datetime.now() to confirm the dates are valid dates prior to calling the API.
 
 
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'