We model the limit order book (LOB) as a continuous Markov process and develop an algebra to describe its dynamics based on the fundamental events of the book: order arrivals and cancellations. We show how all observables (prices, returns, and liquidity measures) are governed by the same...