How to Merge Prediction Market Datasets Across Venues

How to Merge Prediction Market Datasets Across Venues

How to Merge Prediction Market Datasets Across Venues

A step-by-step method for merging prediction market datasets from several venues: schema, canonical event IDs, time and price normalization, backfills and validation.

How to Merge Prediction Market Datasets Across Venues

Merging prediction market datasets comes down to five decisions, made in order: one schema for markets, trades and settlements; one canonical ID per real-world event; one convention for time and price; a backfill-then-stream ingestion loop that tolerates duplicates; and a validation pass tied to the question you want the data to answer. Get the IDs wrong and every cross-venue number you compute afterward is wrong too. Our Data API delivers cross-venue data with canonical IDs through one integration, so that is the layer you do not have to build yourself. This guide walks through the full routine either way.

AssymetrixUnify Cross-Venue Market DataAssymetrix Data API provides unified access to prediction market data across Polymarket, Kalshi, and Limitless through one integration.Visit

TL;DR

  • Design the schema around four entities: market, trade, price snapshot and settlement. Keep raw venue fields next to normalized ones.

  • Match events on a canonical identifier first. Use normalized titles, deadlines and outcome labels only as fallback evidence.

  • Store time in UTC with both event time and ingestion time. Store prices as decimal probabilities between 0 and 1, with the original quote preserved.

  • Ingest with checkpoints, duplicate-safe inserts and an overlap window, so late or failed responses repair themselves.

  • Validate against the purpose of the merged set: coverage, duplicates, missingness and a benchmark comparison.

Table of Contents

  • What you are actually merging

  • Step 1: Define a unified schema

  • Step 2: Match events with canonical IDs

  • Step 3: Normalize time and price

  • Step 4: Backfill first, then stream

  • Step 5: Validate the merged dataset

  • A worked example: one event, two venues

  • Perspective

  • Skip the plumbing: the Data API

  • FAQ

  • Sources

What you are actually merging

Prediction market venues publish the same kind of information in very different shapes. One venue is an on-chain order book where every fill is a log entry. Another is a regulated exchange with its own tickers, series and contract definitions. A third may use its own outcome labels and settlement logic. The overlap is semantic (“Will X happen by date Y?”), not structural.

Scale matters when you plan storage. A 2026 academic study of the largest on-chain venue reports 770,880 market records and 943,548,464 fill events between October 2, 2020 and March 31, 2026, covering 602,697 traded markets and 2,492,419 trader addresses. That is one venue. A merged, multi-venue set lands in the hundreds of gigabytes to terabytes, which is why the ingestion and keying decisions below matter more than the choice of database.

The same study shows what a complete record looks like. It combines market metadata, fill-level trades and oracle-resolution events, and rebuilds the whole resolution sequence (initialization, outcome request, proposal, dispute, final settlement) instead of keeping only the final answer. Use that as your target: a merged dataset that holds only prices and outcomes cannot answer questions about disputes, delayed settlement or resolution risk.


Five stages of a market resolution sequence

Step 1: Define a unified schema

Start with the schema, not the connectors. Four entities cover most quant and bot use cases. Our market metadata schema guide goes deeper on the first one.

Entity

Core fields

Keep raw alongside

Market

canonical_event_id, venue, venue_market_id, question text, outcome list, open time, close time, category, status

Original title, original outcome labels, venue-specific tags

Trade

venue, venue_market_id, outcome, side, price, size, event timestamp, ingestion timestamp, trade or fill ID

Original price unit, original size unit, transaction or sequence reference

Price snapshot

venue, market, outcome, bid, ask, last, depth, snapshot timestamp

Raw payload, update source (stream or poll)

Settlement

venue, market, resolved outcome, resolution time, resolution source, dispute flag

Full oracle or exchange event history

Three rules keep this schema from breaking later:

  1. Composite keys, never bare IDs. A venue market ID is unique only inside its venue. Key on venue plus venue ID, and attach the canonical event ID as a separate column.

  2. Raw next to normalized. Every transformed field (price, size, outcome label) keeps its original value. When a normalization rule turns out to be wrong, you reprocess instead of re-collecting.

  3. Outcome-level rows. A binary market has two outcomes, a categorical market has many, and a scalar market has a range. Model the outcome as its own row so all three types fit one table.

Where our own pipeline is concerned, our Data API guide for developers describes REST and WebSocket access with canonical IDs, so one schema serves both historical queries and live streams.

Step 2: Match events with canonical IDs

This is where most merges fail. Two venues rarely share a market ID, and titles drift: “Fed cuts rates in December” on one venue is “FOMC lowers target range at December meeting” on another. Outcome labels differ too (“Yes”/“No” versus a named candidate), and so do deadlines, resolution criteria and tie-break rules.

The approach that held up in the academic literature is a layered key. The Polymarket lifecycle study links metadata, trades and oracle outcomes under a canonical market identifier, using question and condition identifiers as primary evidence and falling back on normalized titles and deadlines. Adapt that to cross-venue matching:

  1. Exact identifiers first. Where a venue exposes a question, condition or ticker ID, use it to group records within the venue.

  2. Candidate generation. For cross-venue pairs, shortlist candidates by category, close date within a tolerance window and normalized title tokens (lowercased, stop words removed, entities and dates extracted).

  3. Criteria comparison. Compare resolution source, threshold and deadline wording. “Above 4%” and “at or above 4%” are different contracts, and a match that ignores the difference produces phantom arbitrage.

  4. Outcome mapping. Map each venue’s outcomes onto the canonical outcomes explicitly, including inverted markets where “Yes” on one venue equals “No” on the other.

  5. Confidence and review. Store a match type (exact, high-confidence fuzzy, manual) and send low-confidence pairs to review rather than into the production table.

Deduplication belongs here as well: one real-world event can appear as several markets on one venue (re-listed, split by date, or relaunched). Our guide to event deduplication with canonical IDs covers the cases in detail, and our cross-venue data guide shows how canonical IDs look when you query them.

Step 3: Normalize time and price

Once events line up, make the numbers comparable. Neither convention below has a single official standard across venues, so treat these as engineering recommendations and document them in your data dictionary.

Timestamps

  • Store everything in UTC, as integers (milliseconds) or timezone-aware ISO 8601 values.

  • Keep two clocks: the event time the venue reports and the ingestion time your system received the record. Backtests need the first, latency analysis and audit trails need the second.

  • On-chain records carry block time, which can differ from the matching engine time of an off-chain exchange. Record the time source in a column, so you never compare them blindly.

  • Resample only at analysis time. Keep the native granularity in storage.

Prices and probabilities

  • Convert every quote to a decimal in the 0 to 1 range, where the price of a share approximates implied probability. If a venue quotes in cents, divide by 100 and keep the original value.

  • Store bid, ask, last trade and midpoint separately. A midpoint computed from a thin book is not the same signal as the last trade, and cross-venue gaps measured on mismatched quote types are noise.

  • Keep fees out of the price column. Apply them in a separate step, because fee schedules differ by venue and change over time.

  • Handle size units explicitly (shares, contracts, notional dollars). Never assume they match.

Update frequency

Streaming venues push changes within milliseconds, while polled endpoints give snapshots at a fixed interval. Do not forward-fill a slow venue to match a fast one without flagging it. Add a staleness_ms column (time since the last real update), and filter on it before computing a spread. Our guide to measuring cross-venue price gaps explains why this single column removes most false signals.

Step 4: Backfill first, then stream

A merged dataset has two ingestion modes: a historical backfill and a continuous update. Build both on the same code path, so a record looks the same whichever way it arrived.

The lifecycle study is a good template. It combines venue metadata interfaces with on-chain logs and oracle records and supports both historical backfills and continuous updates through checkpoint-based synchronization. It also scanned chain logs directly in an execution-first approach, intended to avoid omissions from incomplete or late metadata. The lesson for any venue: treat executed trades as the source of truth, and treat metadata as an enrichment that may arrive late.

The same paper describes the failure handling you need: checkpoints, duplicate-safe insertion and an overlap window that is re-read to recover delayed responses and temporary failures, with incomplete ranges retained for later repair. In practice:

  1. Checkpoint the last fully processed position (block, sequence number or timestamp) per venue and per stream.

  2. Overlap each run by a window, for example re-reading the last several minutes, so late records land.

  3. Insert idempotently with a unique key on venue plus trade ID (or the equivalent). Replays then change nothing.

  4. Mark gaps as incomplete ranges and queue them for repair, rather than silently skipping them.

  5. Version revisions. Markets get edited, relisted and resolved. Keep an updated_at and either a history table or a valid-from and valid-to pair, so a backtest can reconstruct what was known at a given time.

For language-specific starting points, see our guides for Node.js ingestion and normalization and Python workflows, and our overview of real-time and historical feeds.

Do not forget settlements. Resolution data is what makes a merged set usable for calibration and strategy evaluation, and what to capture at resolution is a separate design question from trades.

Step 5: Validate the merged dataset

A merge can look clean and still be wrong. The U.S. Federal Committee on Statistical Methodology’s data quality framework says to assess the quality of the input sources and the integration method, including record linkage and harmonization, against the intended purpose, using sensitivity analysis or comparison with benchmark data where appropriate.

Translate that to a validation checklist:

  • Fitness for purpose. A set for arbitrage detection needs tight timestamps and quote-level data. A set for calibration research needs complete settlements. Define the use first. A 2024 framework for blended data makes the same point: quality must be judged for the intended use and for the specific fields used to link records.

  • Identifier and range checks. Prices outside 0 to 1, negative sizes, close times before open times, and IDs that fail a format check.

  • Duplicates and missingness. Report both, per venue and per day. Researchers building a quality toolkit recommend checking identifiers and values against metadata and reporting missingness, duplicates and coverage, and they note that without an independent validation source you cannot prove plausible-looking values are correct.

  • Independent benchmark. Reconcile daily volume or trade counts against a venue’s own published statistics, and spot-check a sample of trades against the raw source.

  • Link audit. Sample matched event pairs, read the resolution criteria side by side, and measure your false-match rate. This is the number that determines whether cross-venue spreads are trustworthy.

For teams that need documented, repeatable review, frameworks for alternative data due diligence describe how institutions evaluate data sources before relying on them. Our own list of eight data quality checks for prediction market pipelines turns these ideas into concrete tests you can schedule.

A worked example: one event, two venues

Suppose two venues list a market on the same central bank decision. Venue A quotes the “Yes” share at 0.62 in dollars. Venue B quotes a “Cut” contract at 59 cents. After normalization, both are 0.62 and 0.59 on a 0 to 1 scale, with a raw value retained.

Before you call that a 3-point gap, check four things. Do both resolve on the same announcement and the same threshold? Are the two quotes from the same moment, within your staleness limit? Are both last-trade values, or is one a midpoint? And is the gap larger than combined fees and slippage? If any answer is no, the gap is an artifact of the merge, not a signal. If all four pass, you have a clean observation to store, and the same logic runs on every matched pair in the set. Our arbitrage framework builds on exactly this kind of filtered measurement.

Perspective

The hard part of merging prediction market datasets is not the code that pulls data. It is the decision about what counts as the same event.

We built our platform around that decision. Our Data API gives developers, quants and AI agents unified access to cross-venue data through a single integration, on roughly 1.5 terabytes of history across nearly one billion rows of trading activity. Canonical IDs and normalized schemas sit at the center, because every downstream signal, from Smart Money wallet tracking to arbitrage, inherits the quality of the matching layer.

A venue-neutral layer matters for the same reason. When the data source is independent of any single exchange, matching rules are applied the same way everywhere, and a researcher can reproduce a result next month with the same keys.

Dean

Skip the plumbing: the Data API

If you would rather spend your time on strategy than on matching and backfill logic, our Data API provides unified real-time and historical prediction market data across the major venues, with normalized market schemas and canonical IDs. It is built for developers, quantitative researchers, trading bots and AI agents, and it comes with free and paid tiers plus non-commercial options for researchers.


Assymetrix

For historical work, see our guide to reproducible backtests on 1B rows of data.

FAQ

Should I match markets by title similarity alone?

No. Titles are useful for generating candidates, but two markets with near-identical titles can differ in threshold, deadline or resolution source. Use identifiers where they exist, compare resolution criteria for every cross-venue pair, and store a match confidence so you can audit it later.

How do I store prices from venues that quote differently?

Convert each quote to a decimal probability from 0 to 1 in a normalized column, and keep the original quote and its unit next to it. Store bid, ask, last and midpoint separately, and leave fees out of the price so you can change fee assumptions without reprocessing.

What is the safest way to avoid duplicate trades during backfills?

Use a unique key on venue plus trade or fill ID, insert idempotently, and re-read an overlap window on every run. Replays then do nothing, and delayed records still land. Keep incomplete ranges flagged for repair instead of skipping them.

How do I know my merged dataset is good enough?

Test it against the question it must answer. Check ranges, duplicates, missingness and coverage per venue, compare totals with an independent benchmark, and audit a sample of matched event pairs by hand. The false-match rate is the key number for cross-venue work.

Sources

How to Merge Prediction Market Datasets Across Venues

Merging prediction market datasets comes down to five decisions, made in order: one schema for markets, trades and settlements; one canonical ID per real-world event; one convention for time and price; a backfill-then-stream ingestion loop that tolerates duplicates; and a validation pass tied to the question you want the data to answer. Get the IDs wrong and every cross-venue number you compute afterward is wrong too. Our Data API delivers cross-venue data with canonical IDs through one integration, so that is the layer you do not have to build yourself. This guide walks through the full routine either way.

AssymetrixUnify Cross-Venue Market DataAssymetrix Data API provides unified access to prediction market data across Polymarket, Kalshi, and Limitless through one integration.Visit

TL;DR

  • Design the schema around four entities: market, trade, price snapshot and settlement. Keep raw venue fields next to normalized ones.

  • Match events on a canonical identifier first. Use normalized titles, deadlines and outcome labels only as fallback evidence.

  • Store time in UTC with both event time and ingestion time. Store prices as decimal probabilities between 0 and 1, with the original quote preserved.

  • Ingest with checkpoints, duplicate-safe inserts and an overlap window, so late or failed responses repair themselves.

  • Validate against the purpose of the merged set: coverage, duplicates, missingness and a benchmark comparison.

Table of Contents

  • What you are actually merging

  • Step 1: Define a unified schema

  • Step 2: Match events with canonical IDs

  • Step 3: Normalize time and price

  • Step 4: Backfill first, then stream

  • Step 5: Validate the merged dataset

  • A worked example: one event, two venues

  • Perspective

  • Skip the plumbing: the Data API

  • FAQ

  • Sources

What you are actually merging

Prediction market venues publish the same kind of information in very different shapes. One venue is an on-chain order book where every fill is a log entry. Another is a regulated exchange with its own tickers, series and contract definitions. A third may use its own outcome labels and settlement logic. The overlap is semantic (“Will X happen by date Y?”), not structural.

Scale matters when you plan storage. A 2026 academic study of the largest on-chain venue reports 770,880 market records and 943,548,464 fill events between October 2, 2020 and March 31, 2026, covering 602,697 traded markets and 2,492,419 trader addresses. That is one venue. A merged, multi-venue set lands in the hundreds of gigabytes to terabytes, which is why the ingestion and keying decisions below matter more than the choice of database.

The same study shows what a complete record looks like. It combines market metadata, fill-level trades and oracle-resolution events, and rebuilds the whole resolution sequence (initialization, outcome request, proposal, dispute, final settlement) instead of keeping only the final answer. Use that as your target: a merged dataset that holds only prices and outcomes cannot answer questions about disputes, delayed settlement or resolution risk.


Five stages of a market resolution sequence

Step 1: Define a unified schema

Start with the schema, not the connectors. Four entities cover most quant and bot use cases. Our market metadata schema guide goes deeper on the first one.

Entity

Core fields

Keep raw alongside

Market

canonical_event_id, venue, venue_market_id, question text, outcome list, open time, close time, category, status

Original title, original outcome labels, venue-specific tags

Trade

venue, venue_market_id, outcome, side, price, size, event timestamp, ingestion timestamp, trade or fill ID

Original price unit, original size unit, transaction or sequence reference

Price snapshot

venue, market, outcome, bid, ask, last, depth, snapshot timestamp

Raw payload, update source (stream or poll)

Settlement

venue, market, resolved outcome, resolution time, resolution source, dispute flag

Full oracle or exchange event history

Three rules keep this schema from breaking later:

  1. Composite keys, never bare IDs. A venue market ID is unique only inside its venue. Key on venue plus venue ID, and attach the canonical event ID as a separate column.

  2. Raw next to normalized. Every transformed field (price, size, outcome label) keeps its original value. When a normalization rule turns out to be wrong, you reprocess instead of re-collecting.

  3. Outcome-level rows. A binary market has two outcomes, a categorical market has many, and a scalar market has a range. Model the outcome as its own row so all three types fit one table.

Where our own pipeline is concerned, our Data API guide for developers describes REST and WebSocket access with canonical IDs, so one schema serves both historical queries and live streams.

Step 2: Match events with canonical IDs

This is where most merges fail. Two venues rarely share a market ID, and titles drift: “Fed cuts rates in December” on one venue is “FOMC lowers target range at December meeting” on another. Outcome labels differ too (“Yes”/“No” versus a named candidate), and so do deadlines, resolution criteria and tie-break rules.

The approach that held up in the academic literature is a layered key. The Polymarket lifecycle study links metadata, trades and oracle outcomes under a canonical market identifier, using question and condition identifiers as primary evidence and falling back on normalized titles and deadlines. Adapt that to cross-venue matching:

  1. Exact identifiers first. Where a venue exposes a question, condition or ticker ID, use it to group records within the venue.

  2. Candidate generation. For cross-venue pairs, shortlist candidates by category, close date within a tolerance window and normalized title tokens (lowercased, stop words removed, entities and dates extracted).

  3. Criteria comparison. Compare resolution source, threshold and deadline wording. “Above 4%” and “at or above 4%” are different contracts, and a match that ignores the difference produces phantom arbitrage.

  4. Outcome mapping. Map each venue’s outcomes onto the canonical outcomes explicitly, including inverted markets where “Yes” on one venue equals “No” on the other.

  5. Confidence and review. Store a match type (exact, high-confidence fuzzy, manual) and send low-confidence pairs to review rather than into the production table.

Deduplication belongs here as well: one real-world event can appear as several markets on one venue (re-listed, split by date, or relaunched). Our guide to event deduplication with canonical IDs covers the cases in detail, and our cross-venue data guide shows how canonical IDs look when you query them.

Step 3: Normalize time and price

Once events line up, make the numbers comparable. Neither convention below has a single official standard across venues, so treat these as engineering recommendations and document them in your data dictionary.

Timestamps

  • Store everything in UTC, as integers (milliseconds) or timezone-aware ISO 8601 values.

  • Keep two clocks: the event time the venue reports and the ingestion time your system received the record. Backtests need the first, latency analysis and audit trails need the second.

  • On-chain records carry block time, which can differ from the matching engine time of an off-chain exchange. Record the time source in a column, so you never compare them blindly.

  • Resample only at analysis time. Keep the native granularity in storage.

Prices and probabilities

  • Convert every quote to a decimal in the 0 to 1 range, where the price of a share approximates implied probability. If a venue quotes in cents, divide by 100 and keep the original value.

  • Store bid, ask, last trade and midpoint separately. A midpoint computed from a thin book is not the same signal as the last trade, and cross-venue gaps measured on mismatched quote types are noise.

  • Keep fees out of the price column. Apply them in a separate step, because fee schedules differ by venue and change over time.

  • Handle size units explicitly (shares, contracts, notional dollars). Never assume they match.

Update frequency

Streaming venues push changes within milliseconds, while polled endpoints give snapshots at a fixed interval. Do not forward-fill a slow venue to match a fast one without flagging it. Add a staleness_ms column (time since the last real update), and filter on it before computing a spread. Our guide to measuring cross-venue price gaps explains why this single column removes most false signals.

Step 4: Backfill first, then stream

A merged dataset has two ingestion modes: a historical backfill and a continuous update. Build both on the same code path, so a record looks the same whichever way it arrived.

The lifecycle study is a good template. It combines venue metadata interfaces with on-chain logs and oracle records and supports both historical backfills and continuous updates through checkpoint-based synchronization. It also scanned chain logs directly in an execution-first approach, intended to avoid omissions from incomplete or late metadata. The lesson for any venue: treat executed trades as the source of truth, and treat metadata as an enrichment that may arrive late.

The same paper describes the failure handling you need: checkpoints, duplicate-safe insertion and an overlap window that is re-read to recover delayed responses and temporary failures, with incomplete ranges retained for later repair. In practice:

  1. Checkpoint the last fully processed position (block, sequence number or timestamp) per venue and per stream.

  2. Overlap each run by a window, for example re-reading the last several minutes, so late records land.

  3. Insert idempotently with a unique key on venue plus trade ID (or the equivalent). Replays then change nothing.

  4. Mark gaps as incomplete ranges and queue them for repair, rather than silently skipping them.

  5. Version revisions. Markets get edited, relisted and resolved. Keep an updated_at and either a history table or a valid-from and valid-to pair, so a backtest can reconstruct what was known at a given time.

For language-specific starting points, see our guides for Node.js ingestion and normalization and Python workflows, and our overview of real-time and historical feeds.

Do not forget settlements. Resolution data is what makes a merged set usable for calibration and strategy evaluation, and what to capture at resolution is a separate design question from trades.

Step 5: Validate the merged dataset

A merge can look clean and still be wrong. The U.S. Federal Committee on Statistical Methodology’s data quality framework says to assess the quality of the input sources and the integration method, including record linkage and harmonization, against the intended purpose, using sensitivity analysis or comparison with benchmark data where appropriate.

Translate that to a validation checklist:

  • Fitness for purpose. A set for arbitrage detection needs tight timestamps and quote-level data. A set for calibration research needs complete settlements. Define the use first. A 2024 framework for blended data makes the same point: quality must be judged for the intended use and for the specific fields used to link records.

  • Identifier and range checks. Prices outside 0 to 1, negative sizes, close times before open times, and IDs that fail a format check.

  • Duplicates and missingness. Report both, per venue and per day. Researchers building a quality toolkit recommend checking identifiers and values against metadata and reporting missingness, duplicates and coverage, and they note that without an independent validation source you cannot prove plausible-looking values are correct.

  • Independent benchmark. Reconcile daily volume or trade counts against a venue’s own published statistics, and spot-check a sample of trades against the raw source.

  • Link audit. Sample matched event pairs, read the resolution criteria side by side, and measure your false-match rate. This is the number that determines whether cross-venue spreads are trustworthy.

For teams that need documented, repeatable review, frameworks for alternative data due diligence describe how institutions evaluate data sources before relying on them. Our own list of eight data quality checks for prediction market pipelines turns these ideas into concrete tests you can schedule.

A worked example: one event, two venues

Suppose two venues list a market on the same central bank decision. Venue A quotes the “Yes” share at 0.62 in dollars. Venue B quotes a “Cut” contract at 59 cents. After normalization, both are 0.62 and 0.59 on a 0 to 1 scale, with a raw value retained.

Before you call that a 3-point gap, check four things. Do both resolve on the same announcement and the same threshold? Are the two quotes from the same moment, within your staleness limit? Are both last-trade values, or is one a midpoint? And is the gap larger than combined fees and slippage? If any answer is no, the gap is an artifact of the merge, not a signal. If all four pass, you have a clean observation to store, and the same logic runs on every matched pair in the set. Our arbitrage framework builds on exactly this kind of filtered measurement.

Perspective

The hard part of merging prediction market datasets is not the code that pulls data. It is the decision about what counts as the same event.

We built our platform around that decision. Our Data API gives developers, quants and AI agents unified access to cross-venue data through a single integration, on roughly 1.5 terabytes of history across nearly one billion rows of trading activity. Canonical IDs and normalized schemas sit at the center, because every downstream signal, from Smart Money wallet tracking to arbitrage, inherits the quality of the matching layer.

A venue-neutral layer matters for the same reason. When the data source is independent of any single exchange, matching rules are applied the same way everywhere, and a researcher can reproduce a result next month with the same keys.

Dean

Skip the plumbing: the Data API

If you would rather spend your time on strategy than on matching and backfill logic, our Data API provides unified real-time and historical prediction market data across the major venues, with normalized market schemas and canonical IDs. It is built for developers, quantitative researchers, trading bots and AI agents, and it comes with free and paid tiers plus non-commercial options for researchers.


Assymetrix

For historical work, see our guide to reproducible backtests on 1B rows of data.

FAQ

Should I match markets by title similarity alone?

No. Titles are useful for generating candidates, but two markets with near-identical titles can differ in threshold, deadline or resolution source. Use identifiers where they exist, compare resolution criteria for every cross-venue pair, and store a match confidence so you can audit it later.

How do I store prices from venues that quote differently?

Convert each quote to a decimal probability from 0 to 1 in a normalized column, and keep the original quote and its unit next to it. Store bid, ask, last and midpoint separately, and leave fees out of the price so you can change fee assumptions without reprocessing.

What is the safest way to avoid duplicate trades during backfills?

Use a unique key on venue plus trade or fill ID, insert idempotently, and re-read an overlap window on every run. Replays then do nothing, and delayed records still land. Keep incomplete ranges flagged for repair instead of skipping them.

How do I know my merged dataset is good enough?

Test it against the question it must answer. Check ranges, duplicates, missingness and coverage per venue, compare totals with an independent benchmark, and audit a sample of matched event pairs by hand. The false-match rate is the key number for cross-venue work.

Sources

Other Blog