A market-data contract is an explicit agreement about what fields mean, when they become available, how they are versioned and what happens when quality checks fail. It turns data assumptions from informal knowledge into testable research infrastructure.
The data assumption
Begin with the economic object: instrument identity, price type, currency, unit and venue or broker. Add timestamp semantics and expected delivery frequency. A column named price with a date is not sufficient when one source uses bid bars and another uses last trades, or when publication and observation dates differ.
Lineage matters as much as cleanliness. A corrected file should not silently replace the dataset used to approve a strategy. Preserve original inputs, transformation versions and a record of material changes so a reviewer can reproduce both the old result and the corrected analysis.
A worked example
Suppose a provider changes a volume field from contracts to underlying units while preserving the column name. A model using a liquidity threshold can alter its universe without any code change. A contract that specifies units and monitors distribution breaks can detect the shift; a simple check that the column contains positive numbers cannot.
Practical review and implementation
Define required fields, valid ranges, uniqueness keys, expected calendars, freshness thresholds and permissible gaps. Add point-in-time availability and correction policies. Quarantine failures, assign an owner and record whether the issue blocks research, valuation or live decisions. Keep quality summaries with each dataset version and include a small independent reconciliation sample. Treat provider upgrades as controlled changes rather than routine file replacements.
Assumptions and limitations
A contract cannot make an inaccurate source truthful, and excessive rules can reject legitimate market changes. Checks need periodic review and context. The purpose is traceability and controlled failure, not an assertion that any dataset passing validation is suitable for every investment decision.
Primary references
Further detail on the underlying concepts and data definitions:
