GSRVS is an enterprise-grade, open-source platform for simulating and visualizing financial contagion. Built with a modern tech stack, it provides a powerful, interactive environment for researchers, regulators, and financial professionals to conduct sophisticated systemic risk analysis.
- Sophisticated Simulation Engine: Models multi-stage contagion, including credit losses, funding shocks, and asset fire sales.
- Interactive React Frontend: A dynamic and user-friendly interface for building scenarios, controlling simulations, and analyzing results.
- RESTful API Backend: A robust FastAPI backend serving data and handling complex calculations.
- Containerized with Docker: Get the entire application running with a single command.
- Advanced Visualization: Interactive network graphs and time-series dashboards to track key risk metrics.
- Dynamic Network Visualization: Interactive graphs powered by React Flow.
- Shock Simulation Engine: Simulate defaults, liquidity shocks, and asset price crashes.
- Scenario Builder: Interactively design and save complex scenarios.
- Capital & Liquidity Modeling: Tracks regulatory capital (CET1) and liquidity buffers. -. Contagion Pathways Analyzer: Trace the exact pathways of shock propagation.
- Risk Dashboards: Real-time charts for capital shortfalls, defaulted assets, and more.
- Docker and Docker Compose
This project is fully containerized. To get started, simply clone the repository and run Docker Compose.
-
Clone the repository:
git clone [https://github.com/your-username/GSRVS.git](https://github.com/your-username/GSRVS.git) cd GSRVS -
Build and run the containers:
docker-compose up --build
-
Access the application:
- Frontend UI: Open your browser to
http://localhost:3000 - Backend API Docs: Access the interactive API documentation at
http://localhost:8000/docs
- Frontend UI: Open your browser to
/api: The Python backend powered by FastAPI. It handles all data processing, simulation logic, and serves the REST API./client: The React.js frontend. It provides the user interface for interacting with the simulation./data: Contains sample data files for a quick start.
- Load Data: The application loads the sample data by default.
- Configure Scenario: Use the "Control Panel" on the left to define the initial shock (e.g., select an institution to default, or define a market-wide asset price drop).
- Run Simulation: Click the "Run Simulation" button.
- Analyze Results:
- Observe the Network Graph as nodes change color to reflect their status (Healthy, Stressed, Defaulted).
- Watch the Results Dashboard to see charts of key metrics evolving over the simulation rounds.
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See the LICENSE file for details.