A comprehensive market monitoring and analytics dashboard system built for OpenBB Workspace, providing real-time insights across major financial asset classes and risk dimensions.
- Go to https://pro.openbb.co/.
- Click on the Apps tab
- Click on Connect Backend
- Add the backend Name: DTCC Endpoint URL: https://dtcc-openbb-dashboard.fly.dev
- Click Test
- Click Add
That's it. Then click in one of the DTCC apps created.
This system provides 7 specialized dashboards with 41+ interactive widgets covering:
- Market transparency and surveillance
- Risk management and stress testing
- Fixed income and repo markets
- Derivatives analytics
- Equities and ETF monitoring
- Regulatory compliance
- Trading strategy insights
- Python 3.8 or higher
- pip (Python package installer)
- Clone or download the project
git clone <repository-url>
cd dtcc-openbb- Run the setup script
./setup.sh- Or install manually
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt- Activate virtual environment (if not already active)
source venv/bin/activate- Start the server
uvicorn main:app --reload --port 8000- Access the system
- API Root: http://localhost:8000
- Widgets Configuration: http://localhost:8000/widgets.json
- Apps Configuration: http://localhost:8000/apps.json
- Trade Volume Heatmap - Monitor volumes by asset class/hour
- Anomaly Detector - Track settlement fails and cancel spikes
- Counterparty Exposure Network - Interactive network visualization
- Regulatory Compliance Ticker - Real-time compliance alerts
- Activity Metrics - Key surveillance metrics
- Counterparty Exposure Treemap - Hierarchical exposure view
- Collateral Requirement Forecast - Multi-scenario projections
- Settlement Fails Tracker - Time series with stress overlays
- Liquidity Heatmap - Repo availability matrix
- Stress Test Results - Scenario impact analysis
- Risk Metrics - Key risk indicators
- Treasury Trade Volumes - Volumes by tenor over time
- Repo Rate Spread Tracker - GCF vs SOFR/ON RRP
- Fails-to-Deliver Monitor - CUSIP-level fail tracking
- Dealer Activity Leaderboard - Top lenders/borrowers
- Liquidity Curve Heatmap - Availability by collateral type
- Fixed Income Metrics - Market summary
- Swap Notional by Tenor - Cross-currency analysis
- CDS Spread Monitor - Index vs single-name tracking
- Volatility Surface - 3D implied vol visualization
- Net Open Positions - Asset class breakdown
- Derivatives Network - Counterparty flow analysis
- Derivatives Metrics - Market statistics
- Settlement Timeline - T+1/T+2 obligations forecast
- ETF Flows - Creation/redemption with basket drilldown
- Short Interest Tracker - Borrow rates and utilization
- Concentration Risk - Largest net obligations by security
- Crowded Trade Alerts - Real-time borrow/fail spikes
- Equities Metrics - Market summary
- Regulation Heatmap - Compliance rates by regulation
- Trade Lifecycle Audit - Execution to settlement tracking
- Exception Reports - Missing fields and validations
- KYC/AML Flags - Suspicious entity monitoring
- Compliance Alerts - Real-time regulatory issues
- Compliance Metrics - Regulatory KPIs
- Repo Squeeze Detector - Collateral demand spikes
- Sentiment Gauge - Short interest as bearishness proxy
- Liquidity Fragmentation - Cross-venue analysis
- Arbitrage Monitor - CDS/bond spreads, ETF/NAV gaps
- Flow Momentum - Net flows mapped to performance
- Strategy Metrics - Trading insights
- FastAPI - Modern async web framework
- Plotly - Interactive charts and visualizations
- Pandas/NumPy - Data manipulation and analysis
- Uvicorn - ASGI server
- Interactive Charts - Plotly-based with theme support
- Advanced Tables - AgGrid with sorting, filtering, charting
- Metrics - KPI displays with delta indicators
- Heatmaps - Multi-dimensional data visualization
- Network Graphs - Relationship and flow analysis
- 3D Surfaces - Complex data representations
- β OpenBB Workspace compatible
- β Dark/Light theme support
- β Real-time data refresh
- β Interactive parameters
- β Raw data mode for AI copilot
- β Responsive design
- β Comprehensive mock data
Each dashboard has its own app configuration file in the apps/ directory:
apps/market_surveillance.json- Market surveillance appapps/risk_management.json- Risk management appapps/fixed_income.json- Fixed income appapps/derivatives.json- Derivatives appapps/equities_etf.json- Equities & ETF appapps/regulatory_compliance.json- Compliance appapps/trading_strategy.json- Trading strategy app
The /apps.json endpoint dynamically loads and aggregates these individual files.
- Edit individual app files in
apps/directory - Changes are automatically available via the
/apps.jsonendpoint - No manual regeneration needed (dynamic loading)
- Create endpoint function in appropriate router
- Use
@register_widget()decorator with configuration - Widget will be automatically registered
- Add widget to appropriate app configuration in
apps/directory
@register_widget({
"name": "My Widget",
"description": "Widget description",
"category": "Dashboard Category",
"type": "chart", # or "table", "metric"
"endpoint": "dashboard/my_widget",
"gridData": {"w": 20, "h": 10}
})
@router.get("/my_widget")
def my_widget():
return {"data": "example"}GET /- API root informationGET /widgets.json- Widget configurations for OpenBB (41 widgets)GET /apps.json- Dashboard app configurations (7 apps with 14 tabs)
/market_surveillance/*- Market surveillance widgets/risk_management/*- Risk management widgets/fixed_income/*- Fixed income widgets/derivatives/*- Derivatives widgets/equities_etf/*- Equities & ETF widgets/regulatory_compliance/*- Compliance widgets/trading_strategy/*- Trading strategy widgets
Test individual widgets:
curl http://localhost:8000/market_surveillance/activity_metrics
curl http://localhost:8000/widgets.json- Start the DTCC dashboard system
- In OpenBB Workspace, add custom backend:
http://localhost:8000 - Widgets will appear in the widget library
- Apps will be available in the apps section
The system includes comprehensive mock data generators that simulate realistic DTCC scenarios:
- Trade volumes and patterns
- Counterparty relationships
- Settlement fails and anomalies
- Regulatory compliance data
- Risk metrics and stress scenarios
- CORS properly configured for OpenBB Workspace
- No sensitive data in mock generators
- Secure defaults for all configurations
This project is provided as-is for demonstration and development purposes.
Palette:
- #0E5447
- #ED6D3C
- #f6c544
Built for OpenBB Workspace | Comprehensive DTCC Market Analytics