The Microstructure of Endogenous Liquidity Provision