This study develops a novel agent-based model of the interbank market with endogenous credit risk formation mechanisms. We allow banks to exchange funds through unsecured and secured transactions in order to facilitate the flow of funds to the most pro table investment projects. Our model...