Summary
The direct yfinance stock-data tool passes the user-requested end_date directly to Ticker.history(), whose end date is exclusive. The report header says data is from start to end, but the final date is not included.
Evidence
tradingagents/dataflows/y_finance.py:24 calls ticker.history(start=start_date, end=end_date).
tradingagents/dataflows/y_finance.py:50 reports from {start_date} to {end_date}.
Reproduction
Request stock data for a range where the end date is a trading day.
Expected
The end date row should be included or the header should state the exclusive range.
Suggested fix
Add one day to end_date before passing it to yfinance for daily history.
Summary
The direct yfinance stock-data tool passes the user-requested
end_datedirectly toTicker.history(), whose end date is exclusive. The report header says data is from start to end, but the final date is not included.Evidence
tradingagents/dataflows/y_finance.py:24callsticker.history(start=start_date, end=end_date).tradingagents/dataflows/y_finance.py:50reportsfrom {start_date} to {end_date}.Reproduction
Request stock data for a range where the end date is a trading day.
Expected
The end date row should be included or the header should state the exclusive range.
Suggested fix
Add one day to
end_datebefore passing it to yfinance for daily history.