This paper develops a theory of the onset of financial crises by solving for the optimal trading strategies of speculators in financial markets, in a model where each speculator tries to coordinate her trades with the market's by observing the decisions of other speculators, while simultaneously...