The paper uses disaggregated data on asset holdings and liabilities to estimate a general equilibrium model where each institution determines the diversification and size of the asset and liability sides of its balance-sheet. The model endogenously generates two types of financial networks: (i)...