On May 6, 2010, at 2:32 p.m. Eastern time, nearly a trillion dollars evaporated from the US stock market within 20 minutes—at the time, the fastest decline in history. Then, almost as suddenly, the market rebounded. After months of investigation, regulators attributed much of the responsibility for this “flash crash” to high-frequency trading algorithms, which…