Skip to content

[Feature Request]: Add COT Index and Commercials Report data for Forex trading agents #866

@Ankur-Rai001

Description

@Ankur-Rai001

Problem / Opportunity

Currently, the trading agents lack institutional positioning data, which limits their ability to gauge long-term market sentiment and trend reversals in Forex pairs.

Proposed Feature

I would like to integrate the Commitment of Traders (COT) data—specifically focusing on the Commercials Report and a calculated COT Index—into the repository. This will allow the models to factor in where major banks and institutions are hedging their positions, significantly enhancing the structural reasoning and predictive power of the trading agents.

Proposed Implementation Plan

  1. Data Sourcing: Fetch historical and weekly COT data (likely via the CFTC API or a wrapper library like chuback).
  2. Feature Engineering: Calculate a normalized COT Index (e.g., a 3-year or 26-week lookback percentile) to transform raw net-positioning numbers into actionable technical signals.
  3. Agent Integration: Expose these features to the trading environment/agents so they can use it as a high-timeframe macro filter.

Additional Context

I am happy to work on this feature myself! Please let me know if this aligns with the project's architecture or if you have any preferences on data pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions