Capital Flow & Risk Network

Stress-testing a banking system

A synthetic financial system, from the economy and the treasury through the central bank and commercial, investment and shadow banks to businesses and households, laid out as a force graph of who owes what to whom.

Each institution holds capital as a buffer against losses, and each link is an exposure: a loan, deposits, reserves, securities holdings, repo, a guarantee or a derivative. A macro scenario cuts into those buffers, and contagion passes the losses on to creditors. The app runs two contagion engines side by side. DebtRank passes on stress round by round: once a bank has lost part of its capital, its creditors already mark down what it owes them. Eisenberg–Noe solves for the payments every institution can still make at the same time, so losses only spread once a debtor can’t pay in full.

To see the difference, open Scenario and pick the Stagflation preset, then step through the rounds in the results panel. The shock itself leaves 6 institutions distressed (half their capital or more gone). Under DebtRank their creditors mark down their claims, so 14 are distressed after one round and 15 after two, and two investment banks default: Kestrel Brothers, and Meridian Capital Markets, which the shock alone left short of distress. Switch the results panel to Eisenberg–Noe: none of the 6 defaults, so no loss is passed on and they stay the only ones distressed. Click any node to see its balance sheet and exposures, or shock a single institution from its detail panel.

Built with React, TypeScript and react-force-graph. Everything runs in your browser, including both contagion engines and the optional fire-sale and liquidity-stress extensions under Scenario. The desktop version can also score institutions with a graph neural network run on the user’s own machine; this web version leaves that out.

Every institution is fictional, and the balance sheets, macro sensitivities and scenario presets are illustrative, not calibrated to any real banking system. You can import your own spreadsheet from the Data panel; it is read in your browser and never uploaded.