This paper proposes a dynamic multi-agent model of a banking system with central bank. Banks optimize a portfolio of risky investments and riskless excess reserves according to their risk, return, and liquidity preferences. They are linked via interbank loans and face stochastic deposit supply....