• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
MRPRRSIDENT

MRPRRSIDENT

CDMBenchmarking

Model benchmarking tool for IMM, CDM ISDA plus mapping
Unlisted
Like
CDMBenchmarking
Home
Code
9
backend
3
frontend
5
shared
2
..ts
README.md
main.tsx
E
new-file-2757.ts
new-file-3201.tsx
sample-data.csv
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://MRPRRSIDENT--bc561f68cfa311f08a0042dde27851f2.web.val.run
README.md

MP Capital CDM ISDA Data Mapping System

A comprehensive system for banks and financial institutions to submit and map data to the CDM (Common Domain Model) ISDA standard. This application provides intelligent field mapping, external data validation, and a complete manual entry interface with drill-down capabilities.

πŸš€ Features

Core Functionality

  • Multi-Format File Upload: Support for Excel (.xlsx, .xls, .csv), SQL Server, and Oracle data formats
  • Intelligent Field Mapping: AI-powered mapping to CDM ISDA model with confidence scoring
  • External Data Validation: Real-time validation against external data sources (currency codes, business centers, rate indices)
  • Manual Entry Interface: Complete CDM model with expandable drill-down sections
  • Real-time Validation: Comprehensive validation with error and warning reporting
  • Multiple Export Formats: Export to JSON, XML, and CSV formats

User Experience

  • MP Capital Branding: Professional branding with custom styling and logo
  • Responsive Design: Works seamlessly on desktop and mobile devices
  • Progress Tracking: Visual progress indicators throughout the workflow
  • Template System: Pre-built templates for common trade types (Interest Rate Swaps, Cap/Floor)
  • Search & Filter: Advanced search and filtering capabilities
  • Drag & Drop: Intuitive file upload with drag-and-drop support

Technical Features

  • External API Integration: Validates currencies, business centers, and rate indices
  • CDM Compliance: Full compliance with CDM ISDA standards
  • Error Handling: Comprehensive error handling with detailed feedback
  • Performance Optimized: Efficient processing of large data files
  • Security: Secure file handling and data processing

πŸ—οΈ Architecture

Backend Services

backend/
β”œβ”€β”€ index.ts                 # Main Hono server with CORS and error handling
β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ upload.ts           # File upload, processing, and export
β”‚   └── mapping.ts          # CDM structure, validation, and templates
└── services/
    β”œβ”€β”€ cdm-parser.ts       # CDM model parsing and validation
    β”œβ”€β”€ file-processor.ts   # Multi-format file processing
    └── external-data.ts    # External data source integration

Frontend Components

frontend/
β”œβ”€β”€ index.html              # Main HTML with MP Capital styling
β”œβ”€β”€ index.tsx              # React application entry point
└── components/
    β”œβ”€β”€ App.tsx            # Main application with routing
    β”œβ”€β”€ Header.tsx         # Navigation with progress tracking
    β”œβ”€β”€ FileUpload.tsx     # File upload with drag-and-drop
    β”œβ”€β”€ MappingView.tsx    # Interactive field mapping interface
    └── ManualEntry.tsx    # CDM manual entry with drill-down

Shared Resources

shared/
β”œβ”€β”€ types.ts               # Complete CDM type definitions
└── utils.ts              # Utility functions and validation

🎯 User Workflow

1. File Upload

  • Drag & Drop Interface: Users can drag files directly onto the upload area
  • Format Detection: Automatic detection of file format (Excel, SQL, Oracle)
  • Validation: File size and format validation before processing
  • Progress Tracking: Real-time upload and processing progress

2. Field Mapping

  • Automatic Mapping: AI-powered field mapping with confidence scores
  • Manual Adjustment: Users can review and adjust mappings
  • External Validation: Real-time validation against external data sources
  • Mapping Suggestions: Intelligent suggestions for unmapped fields

3. Manual Entry (Alternative Path)

  • Complete CDM Structure: Full CDM model with all sections
  • Drill-Down Interface: Expandable sections for detailed data entry
  • Template Support: Pre-built templates for common trade types
  • Field Validation: Real-time validation with error highlighting

4. Review & Export

  • Data Preview: Complete review of mapped CDM data
  • Validation Summary: Overview of errors and warnings
  • Multiple Export Formats: JSON, XML, and CSV export options
  • Download: Direct download of processed data

πŸ”§ API Endpoints

Upload Endpoints

  • POST /api/upload/file - Upload and process data files
  • GET /api/upload/formats - Get supported file formats
  • POST /api/upload/validate-field - Validate individual fields
  • POST /api/upload/suggest-mapping - Get mapping suggestions
  • POST /api/upload/export - Export processed data

Mapping Endpoints

  • GET /api/mapping/structure - Get complete CDM structure
  • POST /api/mapping/validate - Validate CDM trade data
  • POST /api/mapping/validate-field - Validate specific fields
  • GET /api/mapping/suggestions/:fieldPath - Get field suggestions
  • GET /api/mapping/templates - Get trade templates

Health Check

  • GET /api/health - System health status

πŸ“Š Supported Data Formats

Excel Files (.xlsx, .xls, .csv)

  • Requirements: Headers in first row, data from second row
  • Sample Headers: trade_id, trade_date, counterparty_name, notional, currency
  • Max Size: 10MB

SQL Server Files (.sql, .txt)

  • Formats: INSERT statements or tab-separated query results
  • Encoding: UTF-8
  • Sample: INSERT INTO trades (trade_id, trade_date) VALUES ('TRD001', '2024-01-15');

Oracle Files (.sql, .txt, .dmp)

  • Formats: Oracle INSERT statements or pipe-separated exports
  • Encoding: UTF-8
  • Sample: INSERT INTO "TRADES" ("TRADE_ID") VALUES ('TRD001');

πŸ” External Data Validation

Currency Validation

  • Source: ExchangeRate-API and static currency lists
  • Validates: ISO 4217 currency codes
  • Examples: USD, EUR, GBP, JPY

Business Center Validation

  • Source: ISDA standard business centers
  • Validates: Business center codes
  • Examples: GBLO, USNY, JPTO, FRPA

Rate Index Validation

  • Source: Standard floating rate indices
  • Validates: Rate index names
  • Examples: USD-SOFR, EUR-ESTR, GBP-SONIA

LEI Validation

  • Source: GLEIF API (when available)
  • Validates: Legal Entity Identifiers
  • Format: 20 alphanumeric characters

🎨 MP Capital Branding

Design System

  • Primary Color: #1e40af (Blue)
  • Secondary Color: #3b82f6 (Light Blue)
  • Accent Color: #f59e0b (Amber)
  • Typography: Professional, clean fonts
  • Logo: MP Capital with data visualization elements

UI Components

  • Cards: Rounded corners with subtle shadows
  • Buttons: Primary and secondary button styles
  • Forms: Consistent input styling with focus states
  • Progress: Animated progress bars and spinners
  • Status: Color-coded validation status indicators

πŸš€ Getting Started

Access the Application

  1. Main Interface: Visit the application URL
  2. File Upload: Start with the file upload interface
  3. Manual Entry: Or use the manual entry for direct CDM input

Sample Data

A sample CSV file is included (sample-data.csv) with example trade data:

trade_id,trade_date,counterparty_name,notional,currency,fixed_rate,floating_rate_index,maturity_date,product_type TRD001,2024-01-15,Bank ABC,1000000,USD,0.0325,USD-SOFR,2029-01-15,InterestRateSwap

Testing the System

  1. Upload Sample File: Use the provided sample CSV
  2. Review Mappings: Check the automatic field mappings
  3. Validate Data: Run validation to see external data checks
  4. Export Results: Download the mapped CDM data

πŸ”§ Technical Implementation

Framework & Libraries

  • Backend: Hono.js for high-performance API
  • Frontend: React 18 with TypeScript
  • Styling: TailwindCSS with custom MP Capital theme
  • File Processing: Custom parsers for multiple formats
  • Validation: External API integration for data validation

Performance Features

  • Streaming: Large file processing with progress tracking
  • Caching: Intelligent caching of validation results
  • Lazy Loading: Components loaded on demand
  • Debouncing: Optimized API calls for real-time validation

Security Features

  • File Validation: Comprehensive file type and size validation
  • Input Sanitization: All user inputs are sanitized
  • Error Handling: Secure error messages without sensitive data
  • CORS: Proper CORS configuration for API access

πŸ“ˆ System Status

  • Version: 1.0.0
  • Status: Production Ready
  • Last Updated: December 2024
  • Compatibility: Modern browsers, mobile responsive

πŸ†˜ Support & Documentation

Help Resources

  • In-App Help: Context-sensitive help throughout the interface
  • Sample Files: Example files for testing different formats
  • Error Messages: Detailed error messages with suggestions
  • Validation Feedback: Real-time feedback on data quality

Contact Information

  • Support: Available through the application interface
  • Documentation: Comprehensive in-app documentation
  • Updates: Regular updates with new features and improvements

MP Capital CDM ISDA Data Mapping System - Transforming financial data mapping with intelligence and precision.

Code
backendfrontendshared..tsREADME.mdmain.tsx
E
new-file-2757.ts
new-file-3201.tsxsample-data.csv
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.