If you're building an OMS or EMS, this walks you through order state machines, FIX protocol flows, and all the edge cases that bite you in production. It covers the full lifecycle from order entry through fills, cancels, and replacements, including the race conditions between cancel requests and executions that cause most bugs. You'll find the canonical state definitions (New, Pending New, Accepted, Partially Filled, and the terminal states), valid transitions, ClOrdID chaining for cancel/replace workflows, and pre-submission validation patterns. The material on CAT audit trails and order persistence for failover is solid. This is the reference you want when debugging why an order hit an impossible state or designing recovery logic.

skills.sh installs
780
GitHub stars
224
last updated
Aug 21, 2026

Install

$ npx -y skills add joellewis/finance_skills --skill order-lifecycle --agent claude-code

Installs into .claude/skills of the current project.

Files

Order Lifecycle

Core Concepts

Order State Machine

The order state machine is the central abstraction in any order management system. It defines every state an order can occupy and every valid transition between states. A correctly implemented state machine prevents impossible transitions (such as filling a canceled order), ensures audit trail completeness, and provides the foundation for order status reporting to clients, counterparties, and regulators.

Canonical order states:

Sponsors

Details

Repository
github.com/joellewis/finance_skills
Categories
Backend & APIs, Security, Documentation, Debugging, Sales & Marketing, Design & UI/UX, Finance & Trading
First seen
Jun 3, 2026

More from joellewis/finance_skills

All 84
1jwynia avatarweb-searchjwynia/agent-skillsSearch the web using the agent's built-in WebSearch tool. Use when you need to find current information, verify facts, or research topics. No API key required. 780skills.sh installs
2machina-sports avatargolf-datamachina-sports/sports-skillsPGA Tour, LPGA, and DP World Tour golf data via ESPN public endpoints — tournament leaderboards, scorecards, season schedules, golfer profiles/overviews, and ne780skills.sh installs
3atlascloudai avataratlas-cloudatlascloudai/atlas-cloud-skillsAtlas Cloud API integration skill — quickly call 300+ AI image generation, video generation, audio (TTS, music, speech-to-text), 3D generation, and LLM models t772skills.sh installs
4encoredev avatarencore-migrateencoredev/skillsMigrate an existing backend application to Encore. Supports any source framework, targets Encore.ts or Encore Go. Drives a structured DISCOVER → PLAN → MIGRATE 767skills.sh installs
5adobe avatarappbuilder-testingadobe/skillsGenerate and run tests for Adobe App Builder actions and UI components. Scaffolds Jest unit tests, integration tests against deployed actions, contract tests fo766skills.sh installs
6ruvnet avatarpii-detectruvnet/rufloDetect and flag personally identifiable information (PII) in text, code, and configurations. Use before committing code, writing logs, storing data, or sending 763skills.sh installs