orderbook-sanity

Audit order book feeds and K-line series for data quality issues.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/paidaxing1234/latency-hunter-toolkit --skill orderbook-sanity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orderbook-sanity
Source: https://github.com/paidaxing1234/latency-hunter-toolkit/tree/main/skills/orderbook-sanity
Command: npx skills add https://github.com/paidaxing1234/latency-hunter-toolkit --skill orderbook-sanity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Data feeding for trading systems often suffers from subtle quality issues in order books, kline series, and timestamps. This skill provides a structured, rule-based audit that identifies and classifies data quality problems with clear evidence and actionable fixes.

Core Features & Use Cases

  • Detects snapshot/diff desync, stale top-of-book, and sequence gaps in order books.
  • Validates kline integrity, missing bars, unclosed bars, time zone and unit inconsistencies, and cross-source alignment.
  • Generates a reproducible data quality report with severity levels and concrete remediation steps.
  • Useful before backtesting or live trading to avoid data-driven false signals and performance distortion.

Quick Start

Run the orderbook-sanity audit on a sample dataset to generate a prioritized quality report.

Frequently Asked Questions about orderbook-sanity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate order book data quality for snapshot and diff desync issues?

To validate order book data quality, run a structured audit that detects snapshot/diff desync, stale top-of-book, and sequence gaps. This generates a reproducible report with severity levels and concrete remediation steps for your data pipelines.

Why does my K-line series have unclosed forming bars and timestamp inconsistencies?

Unclosed forming bars and timestamp inconsistencies occur due to missing bars, time zone errors, or unit mismatches. A rule-based kline integrity audit validates cross-source alignment and returns severity-graded findings to correct these data quality issues.

How do I check timestamp alignment and unit correctness in market data feeds?

To check timestamp alignment and unit correctness in market data feeds, apply deterministic diagnostics that enforce verifiable checks. This identifies timestamp unit errors and cross-source misalignment, returning actionable findings ready for pipeline remediation.

What is the best way to detect survivorship bias and sequence gaps before backtesting?

The best way to detect survivorship bias and sequence gaps before backtesting is to run a rule-based audit on your market data. This enforces deterministic diagnostics to reveal data-driven false signals and performance distortion risks.

Can I use this data quality audit on both REST snapshot feeds and incremental WS updates?

Yes, you can use this data quality audit on both REST snapshot feeds and incremental WS updates. It applies deterministic diagnostics across both data stream types to ensure verifiable checks for desync, sequence gaps, and timestamp alignment.

What are common limitations when auditing order book feeds for data quality?

Limitations when auditing order book feeds involve diagnosing subtle survivorship bias and snapshot/diff desync across complex pipelines. The audit relies on structured, rule-based checks to return severity-graded findings, requiring proper dataset inputs for accurate remediation.