Skip to content

Expose initial / historical news sentiment insights for backtesting stability #265

@Tzion

Description

@Tzion

Problem

News sentiment insights are updated retroactively over time. While this is expected behavior, the API currently only exposes the latest sentiment (insights.sentiment) and does not allow access to the initial or historical sentiment states.

This makes historical backtesting unreliable, since sentiment values used in past simulations no longer match what was available at the time of execution.

Concrete example

For request id
9eba2c7bac1eb14b9fae9ddf1a64f7dead45de8d5e5dc3bcbea9d56b9744003d
the sentiment was initially positive and later changed to neutral, breaking reproducibility.

Proposed solution (one possible design)

Expose sentiment history instead of only the latest state. For example:

  • Allow insights to include multiple entries over time (with timestamps / versioning), or
  • Add an optional way to fetch the initial insight only, or

Use case

Deterministic backtesting and reproducible research for quantitative trading systems.

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