Skip to content

Commit 773e199

Browse files
committed
Update stock data in financial tools
1 parent f288395 commit 773e199

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

financial-tools-chat/chat_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _get_stock_analysis(symbol: str) -> str:
2525
def _get_stock_data(symbol: str) -> str:
2626
df = yf.download(symbol, period="5y", interval="5d")
2727
df = df.reset_index()
28-
df = df.sort_values(by="Date", ascending=False)
28+
df = df.sort_values(by="Date", ascending=True)
2929
df = df.round({"Open": 2, "High": 2, "Low": 2, "Close": 2, "Adj Close": 2})
3030
df["Date"] = pd.to_datetime(df["Date"])
3131
return df.to_csv(index=False)

0 commit comments

Comments
 (0)