For most of Wall Street’s history, stock trading was fairly straightforward: buyers and sellers gathered on exchange floors and dickered until they struck a deal.