In this paper, we develop a Markovian model that deals with the volume offered at the best quote of an electronic order book. The volume of the first limit is a stochastic process whose paths are periodically interrupted and reset to a new value, either by a new limit order submitted inside the spread or by a market order that removes the first limit. Using applied probability results on killing and resurrecting Markov processes, we derive the stationary distribution of the volume offered at the best quote. All proposed models are empirically fitted and compared, stressing the importance of the proposed mechanisms.