The Origins of the Stock Market