Proposal: point-in-time macro features for TensorTrade DataFeeds

Author: roberttidballCreated Jul 15, 2026Updated Jul 15, 2026

Proposal

I maintain FXMacroData, an FX-focused macroeconomic data API and Python SDK. Before preparing any TensorTrade pull request, I would appreciate maintainer guidance on the right integration boundary.

The proposed use case is a point-in-time macro feature builder for TensorTrade DataFeeds:

  • fetch realised macro announcements, initially the public no-key USD inflation history;
  • make each value available only from its publication timestamp, never its reference period, to avoid look-ahead bias;
  • expose numeric streams such as the latest published value, change from the preceding release, and days since publication;
  • let users combine those streams with their own price data and existing TensorTrade environments.

This would not add FXMacroData as a core network dependency or change TensorTrade's data model. Tests would use static announcement fixtures and make no network calls. Broader authenticated FXMacroData coverage would remain optional and outside the base example.

I have a small external proof of concept ready here: https://github.com/fxmacrodata/fxmacrodata/tree/codex/tensortrade-macro-features/examples/tensortrade

Would maintainers prefer:

  1. a fully external add-on/example maintained by FXMacroData;
  2. a concise documented example in TensorTrade's examples collection; or
  3. no upstream-facing integration at this time?

I will follow the preferred route and will not open a code PR without that guidance.

Source: tensortrade-org/tensortrade