Knight Capital's 2012 trading disaster was caused by reusing an obsolete software flag

In August 2012, the market maker Knight Capital lost $440 million in 45 minutes due to a critical software deployment error. The company was implementing a new Retail Liquidity Program (RLP) to compete with other exchanges. During the deployment, engineers reused a legacy feature flag from 2003, known as "Power Peg," which had been dormant for years. While the RLP was intended to improve order routing, the reused flag triggered the old Power Peg function, which was designed to execute aggressive buy orders to test market response. Because the flag was not properly updated across all eight servers, seven servers correctly implemented the RLP, while the eighth server activated the Power Peg function. This caused the system to execute four million trades across 154 stocks, resulting in a massive, unintended $7 billion position. The error forced Knight Capital to sell its assets to competitor Getco four months later, marking one of the most expensive software bugs in financial history.

In August 2012, the market maker Knight Capital lost $440 million in 45 minutes due to a critical software deployment error. The company was implementing a new Retail Liquidity Program (RLP) to compete with other exchanges. During the deployment, engineers reused a legacy feature flag from 2003, known as "Power Peg," which had been dormant for years. While the RLP was intended to improve order routing, the reused flag triggered the old Power Peg function, which was designed to execute aggressive buy orders to test market response. Because the flag was not properly updated across all eight servers, seven servers correctly implemented the RLP, while the eighth server activated the Power Peg function. This caused the system to execute four million trades across 154 stocks, resulting in a massive, unintended $7 billion position. The error forced Knight Capital to sell its assets to competitor Getco four months later, marking one of the most expensive software bugs in financial history.

Knight Capital lost $440 million in 45 minutes after a software deployment error in August 2012. The error occurred because engineers reused a legacy feature flag from 2003 during a new software update.

The reused flag activated an obsolete "Power Peg" function that executed aggressive, unintended buy orders. Only seven of the company's eight servers were correctly updated, leaving one server running the faulty code.

The glitch resulted in four million trades across 154 stocks and a $7 billion position. Knight Capital was acquired by competitor Getco four months after the trading disaster.

Chapter guide

Worth noting

  • The video contains a paid sponsorship for Hyperagent, an AI agent service.
  • The video uses humor and memes to explain technical concepts, which may simplify complex financial and engineering details.

Watch the original video ↗