AI Tools & Scripts
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.
What you get: 1 file · 12.44 KB · ZIP
See purchase optionsProduct description
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.
Example request
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.
Example result
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.
Requirements
- Claude Code or a compatible agent runtime
- SSH access to the host that runs the listener
- A process manager and shell on that host
- Public REST depth endpoint of the exchange (read-only)
How to install
Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.
What you get
1 file · 12.44 KB
- market-listener-live-validation.zipZIP · 12.44 KB
AI Tools & Scripts
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.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 1 file - ZIP - 12.44 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$7.00



