- Home
- Skills
- Testing & Debugging
- Validate a Live Order-Book Listener Against the Exchange
Validate a Live Order-Book Listener Against the Exchange
Deploy a market-data listener and prove its shared-memory order books match the real exchange, read-only, with four witnesses that fail on different things, acceptance thresholds, and the traps that produce false greens.
$7
What it does
- Finds out what really runs on the host before stopping anything
- Explains why a quiet symbol keeps a stale book after restart and how to prove it with a probe
- Validates a listener inside a larger trading process without touching live shared memory
Validate a Live Order-Book Listener Against the Exchange
Example session with this skill installed
I just deployed the new OKX listener on the staging host. Prove its books are right, read-only, and tell me if it is safe to point consumers at it.
- Read your context and instructions
- Compiled the validate a live
Example on a fictional setup (host: your-staging-host, listener: okx-market-listener, 40 symbols, heartbeat 5 s).
Phase 0: the process manager shows one listener app; its binary's build info reports vcs.modified=false and the expected 40-hex revision, so it is the committed build. Restart count is 1 and matches my own restart.
Witness A, full sweep of all 40 slots: 100% ok, 0 MISSING / NEVERWRITTEN / CROSSED / BADORDER / STALE, 20 levels each side everywhere, max age 5.8 s (about 1.2x heartbeat).
Witness B, REST depth comparison: top of book exact on 37 of 40 symbols, worst single-side error 1.8 bps on a fast perp; whole-depth agreement lower on perps than spot, which is normal. I report the numbers, not a pass word.
Witness C, update-id delta over 90 s: advanced 40/40, regressed 0, FROZEN 0. This is the check that heartbeats cannot fake.
Witness D, order-book check tool at tightened flags, two cycles of 20 s: fail 0, skip 0.
Restart probe: sweep at t+3/8/12/20 s; quiet-slot age peaked at 11 s and was back under one heartbeat by t+12 s; the log shows the bootstrap snapshot line.
Verdict: acceptance thresholds met on measured data. Not verified: behaviour under a venue-side id rewind, because none occurred.
Connects securely to your tools. The creator never sees your data.
About this skill
A listener can be broken in ways every obvious check calls healthy: counters climb, slots look fresh, logs are clean, and the books are wrong. This skill is the set of checks that actually discriminate.
What is inside:
- SKILL.md - phases from finding out what really runs on the host, stopping only what should stop, shipping a verified binary (never build on the host; read the build info of the running binary to know its commit), starting it and reading the stats line honestly, then four witnesses: A, a full-universe shared-memory sweep; B, a REST comparison that discriminates; C, the update-id delta that catches frozen books hidden by heartbeat refreshes; D, the order-book check tool, never on its defaults. It also has a long list of traps that produce a false green (SIGPIPE through head, pkill self-matches, tmpfs mtime, non-ASCII symbols), acceptance thresholds, and a reporting format that separates measured from assumed.
- references/restart-hole.md - why a quiet symbol keeps the previous process's book after a restart, and the detached probe that proves the bootstrap fix works.
- references/in-process-variant.md - validating a listener hosted inside a larger trading process without touching live shared memory.
Who it is for: operators and engineers deploying or porting exchange listeners on Linux. It needs SSH to the host and read-only exchange REST access; nothing places orders. Examples are Go with shared memory under /dev/shm. It is also part of the Crypto Exchange Connector Engineering Pack at a lower per-skill price.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- Claude Codeora compatible agent runtimeA process manager and shell on that host
Git
SSH access to the host that runs the listener. Public REST depth endpoint of the exchange (read-only).
Permissions
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.