Finite-State Machines for Quantitative Trading Execution in Python: From Knight Capital to LangGraph
The Knight Capital disaster was a state failure. How to model strategy execution and the order lifecycle with finite-state machines in Python: guards, kill switch, cooldown, transition testing, and the bridge to LangGraph.