Papers1 provider · 1 record
January 1, 2026· Zenodo
report

Measuring Completeness and Latency of Real-Time Crypto Market Data

Abstract

Every quantitative strategy starts with market data, and two questions about that data are rarely answered with numbers: how late is it, and is any of it missing? This report describes marketpipe, a pipeline that ingests trades and order book updates from three crypto exchanges (Binance, Coinbase, Kraken) over websockets, stores them in TimescaleDB, and measures both quantities. Losses are counted exactly by checking the venues' sequence numbers, and every gap is repaired from the venues' REST history; storage is idempotent, so the result is effectively-once. Latencies are corrected for the offset of the local clock, measured against NTP servers, and reported with the uncertainty of that correction. In a live experiment of 2.4 hours (1,318,080 trades) with a planned restart, 12 injected disconnections and an unplanned 29-minute suspension of the host, the pipeline detected 391,457 missing trades and recovered 100% of them; an independent audit against each venue's history found 0 missing and 0 altered trades out of 1,216,302. The local clock turned out to be one second ahead of UTC: uncorrected, every latency would have been overstated by a second. Corrected, the median latency from Paris is 119 ms for Binance (Tokyo), 57 ms for Coinbase and 15 ms for Kraken. A control experiment with an independent receiver shows that the pipeline adds about a millisecond to the median and that most latency spikes originate upstream. Code, tests, dashboards and data are available at https://github.com/KvnFltr/crypto-market-data-pipeline.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.