Skip to main content

Command menu

Jump to a page or search the catalog

AI Tools & Scripts

Port a WebSocket Order-Book Listener to a New Exchange

Port an exchange market-data listener (WebSocket books and trades into shared memory) to a new venue: read the reference in full, verify the protocol against primary docs, write the core package yourself, then audit the port without inventing gaps.

$5.00

What you get: 1 file · 7.03 KB · ZIP

See purchase options

Product description

Adding an exchange to a fleet of market-data listeners goes wrong in quiet ways: a keepalive that does not match, a snapshot/delta rule copied from the wrong venue, a resync path that burns the subscribe budget. This skill is the order of work that avoids them.

What is inside (one SKILL.md, no scripts): - Checking what a half-finished port already contains before writing anything. - Reading the reference listener in full, because the sibling listeners are the spec for the handler interface and the stream architecture. - A protocol checklist verified against the exchange's primary docs: snapshots, sequence gaps, keepalive, subscribe budgets. - A review checkpoint after research and before code, with the real design bug this caught. - Which part to write yourself (the core exchange package) and which mechanical tools to fan out to parallel workers. - Cross-cutting gotchas that do not show in one file's diff (control-plane keys, last-price socket labels, process-manager environment injection). - A final verification and report format that quotes exit codes, not piped output. - Section 10, auditing a finished port: normalise renames before diffing, treat only undocumented divergences as gaps, partition audit dimensions, and run mechanical checks yourself.

Who it is for: engineers extending a multi-exchange market-data stack that uses a sibling-per-exchange architecture. The examples are Go and seqlocked shared memory, the method applies to any language. It is also part of the Crypto Exchange Connector Engineering Pack at a lower per-skill price.

Example request

Add an OKX order-book listener, modelled on our Bybit one. How do you start and what do you check before writing code?

Example result

Example on a fictional setup (reference listener: bybit-listener, target: okx-listener).

  1. Inventory first: the repo already holds a module file, a Makefile and a half-written book data structure with no WS wiring. Read those before writing anything; they encode earlier decisions.
  2. Read the Bybit listener in full, tests included. The tests encode envelope shapes, pong frames and undesired-symbol drops.
  3. Protocol check against OKX primary docs, one line each with a quote: snapshot then incremental updates, checksum or sequence rule for gap detection, keepalive (a literal ping string every N seconds, not a WS ping frame), maximum subscriptions per connection and per second.
  4. Design finding to review before code: an active resync on gap would refire on every inbound frame for a still-gapped symbol and burn the subscribe budget in a correlated-gap event. Decision: resync is rate-limited per symbol with a cooldown.
  5. I write the core exchange package myself and prove it with unit tests plus a Linux cross-build (shared memory is Unix-only). The playground, recorder and soak tools are mechanical and go to parallel workers once that package compiles.
  6. Final gates are run unpiped with the exit code echoed.

Open question for you: which category label your fleet uses for the last-price socket.

Requirements

  • Claude Code or a compatible agent runtime
  • Git and a shell
  • An existing sibling listener to port from (examples are Go with shared memory)

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 · 7.03 KB

  • exchange-market-listener-port.zipZIP · 7.03 KB
LicenseCommercial use allowed
PublishedDec 3, 2026
File size7.03 KB
File formatZIP
Versionv1.0

Tags

claude codeclaude skillai agentcrypto exchangeai memory
C
Claude Workflow Lab

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 - 7.03 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

$5.00