Microstructure Analysis of Dynamic Markets: Limit Order Books and Dynamic Matching Markets