THE DESK FILES
Telegram
Code bug2012

Knight Capital

A bad deploy left dead code live on one server; Knight's router sent 4M+ orders in 45 minutes and lost over $460M.

firm trading loss
>$460M
how fast
45 minutes
who lost
Knight itself.

What happened

A botched software deployment left old code live on Knight's order router, which fired millions of orders at the open on 1 Aug 2012. Knight piled up billions in unwanted positions and lost over $460M.

Warning signs before it blew

  • Unused code stayed on production servers from 2003 and was untested after 2005. [2]
  • No second technician reviewed the deploy and no written procedure required it. [2]
  • 97 automated error emails arrived before the open on 1 Aug. [2]

Timeline

2003: Stopped using its old 'Power Peg' code but left it on production servers.120032005: Moved part of that code without retesting it.220052012-07-27: Began deploying new code, but one of eight servers never got it.32012-07-272012-08-01: From 8:01 a.m., 97 automated error emails reached staff before the open.42012-08-012012-08-01: In 45 minutes after the open it sent 4M+ orders and lost over $460M.52012-08-012013-10-16: Paid $12M to settle SEC market access rule charges.62013-10-16
Numbers match the events listed below. Spacing follows the dates.
  1. Stopped using its old 'Power Peg' code but left it on production servers. [2]
  2. Moved part of that code without retesting it. [2]
  3. Began deploying new code, but one of eight servers never got it. [2]
  4. From 8:01 a.m., 97 automated error emails reached staff before the open. [2]
  5. In 45 minutes after the open it sent 4M+ orders and lost over $460M. [1]
  6. Paid $12M to settle SEC market access rule charges. [1]

The math

4M+ orders sent to fill 212 customer orders; $460M ÷ 45 min ≈ $10M lost per minute.

How big it was

#29 of 43 blowups by size of loss.

Log scale. Grey dots are the other blowups with a comparable dollar loss.

What happened next

The SEC fined Knight $12M in Oct 2013, its first case under the market access rule.

The rule that would have saved them

Every deploy needs a tested rollback and a kill switch someone is allowed to pull.

Check your own book: Before going live, diff the code on every server against the release. If any differ, or no one can stop all order flow in one action, do not trade.

Sources

  1. SEC press release 2013-222 (Knight Capital market access rule settlement) ↗primary
  2. SEC order In re Knight Capital Americas LLC (Rel. 34-70694) ↗primary
Share on X

Not financial advice. Public sources only.