Skip to content

Bug: get_YFin_data_online omits the requested end_date row #987

Description

@RSXLX

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions