Endogenous Liquidity