Advanced Financial Modeling Platform with XVA Engine, ZABR/SABR Models, and Interactive Frontend
XSigma is a comprehensive financial modeling platform that provides advanced volatility models, XVA calculations, and risk management tools. Built with modern web technologies and optimized for performance.
- ZABR Classic - Zero correlation SABR model with analytical solutions
- ZABR PDE - PDE-based SABR implementation for numerical precision
- ZABR Mixture - Hybrid model for complex volatility surfaces
- ASV Calibration - Analytical Sigma Volatility with dynamic calibration
- CVA (Credit Valuation Adjustment)
- DVA (Debit Valuation Adjustment)
- FVA (Funding Valuation Adjustment)
- KVA (Capital Valuation Adjustment)
- HJM Models - Heath-Jarrow-Morton interest rate modeling
- Portfolio Management - Advanced portfolio analytics
- Regulatory Reporting - Compliance and risk reporting
- Real-time Calculations - Dynamic parameter adjustment with live updates
- Professional Charts - Interactive volatility surfaces and risk metrics
- Responsive Design - Modern UI with dark/light themes
- Performance Optimized - Caching and debounced calculations
API_Xsigma/
βββ Backend_Xsigma/ # Node.js API Server
β βββ service/ # Business logic & Python integration
β βββ controllers/ # API endpoints
β βββ routes.js # Route definitions
βββ Frontend_Xsigma/ # React TypeScript Frontend
β βββ src/components/ # UI components
β βββ src/models/ # Financial model interfaces
β βββ src/contexts/ # State management
βββ Documentation/ # API docs & guides
- Node.js 18.x or higher
- Python 3.11 or higher
- npm or yarn
- Clone the repository
git clone https://github.com/bellajkhalid/API_Xsigma.git
cd API_Xsigma
- Setup Backend
cd Backend_Xsigma
npm install
npm start
- Setup Frontend
cd Frontend_Xsigma
npm install
npm run dev
- Access the Application
- Frontend: http://localhost:8081
- Backend API: http://localhost:5005
- API Documentation: http://localhost:5005/api-docs
- π Wiki Documentation - Complete guides and tutorials
- π API Reference - Detailed API documentation
- π ZABR Models Guide - Financial models documentation
- π€ Contributing Guidelines - How to contribute
POST /api/zabr-variables-impact/calculate
- Dynamic ZABR calculationsGET /api/zabr-variables-impact/models
- Available model typesGET /api/zabr-variables-impact/model-info/{type}
- Model information
GET /api/test-hjm/calibration
- HJM model calibrationGET /api/test-hjm/simulation
- Interest rate simulations
POST /api/analytical-sigma
- Analytical sigma volatility
const response = await fetch('/api/zabr-variables-impact/calculate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model_type: 'zabr_mixture',
parameters: {
expiry: 30,
forward: -0.0007,
alpha: 0.0132,
beta1: 0.2,
beta2: 1.25,
d: 0.2,
nu: 0.1978,
rho: -0.444
}
})
});
- Backend: Node.js, Express.js, Python integration
- Frontend: React 18, TypeScript, Tailwind CSS
- Charts: Recharts for interactive visualizations
- State Management: React Context API
- API Documentation: Swagger/OpenAPI
- Performance: Caching, debouncing, lazy loading
- Caching System - 10-15 minute TTL for expensive calculations
- Debounced Updates - 300ms delay for real-time parameter changes
- Lazy Loading - Components loaded on demand
- Optimized Calculations - Efficient numerical algorithms
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- π Bug Report - Report bugs with detailed information
- π‘ Feature Request - Suggest new features
- π Financial Model Request - Request new financial models
This project is licensed under the MIT License - see the LICENSE file for details.
Khalid Bella - GitHub
- XSigma modules for financial calculations
- React and Node.js communities
- Financial modeling research papers and implementations