Trading systems

From rnavarych/alpha-engineer · View interactive version

Trading systems is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Guides trading system design: order matching engines (price-time priority, pro-rata), market data feeds (WebSocket, FIX protocol), order types (market, limit, stop, stop-limit), position management, P&L calculation, risk limits, low-latency architecture, and market microstructure. Use when building

How to use this skill

Skill file

Trading Systems

When to use

Core principles

  1. Matching engine is single-threaded — deterministic, no locking, nanosecond timestamps; concurrency buys nothing here
  2. Pre-trade checks are the last line of defense — all checks under 1ms or you're adding slippage for your users
  3. Kill switch is non-negotiable — cancel all orders and flatten positions in one operation; no exceptions
  4. Journal lines are P&L truth — running MTM is a cache; reconcile against fills at end of day
  5. Binary protocols over JSON at co-location — SBE/Cap'n Proto at microsecond latency; JSON is for dashboards

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.