Skip to content

Docs: CFD data is quote-only too — TradeBarConsolidator fails on Forex/CFD symbols #2738

Description

@Martin-Molinero

Gap. Consolidating Data › Getting Started › Data Shapes and Sizes says Forex is the only asset class without TradeBar data. CFD data is quote-only too: the CFD Handling Data pages list only quotes and ticks. Nothing warns that a TradeBarConsolidator on a Forex or CFD symbol fails in add_consolidator with "Type mismatch found between consolidator and symbol. Symbol: XAUUSD does not support input type: TradeBar. Supported types: QuoteBar."

Evidence (Sep 24–30). 21 errors from 21 users. Symbols: XAUUSD 9, EURUSD 7, US30USD 2, other Forex pairs 2.

Proposed change.

  • Data Shapes and Sizes: "Forex and CFD data have only quotes, so consolidators aggregate them into QuoteBar objects."
  • Time Period Consolidators › Consolidate Trade Bars and the Forex and CFD Handling Data pages: note that TradeBarConsolidator can't consume Forex or CFD data; use QuoteBarConsolidator instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions