🚀 Google Analysis10 - XTrillion Core API

Universal Parser Enhanced Edition - Production Ready

Professional-grade bond analytics powered by XTrillion Core

✅ XTRILLION CORE INTEGRATION

This API is powered by XTrillion Core - the professional bond calculation engine:

🔑 API Key Authentication

Add X-API-Key header with one of these demo keys:

POST /api/v1/bond/analysis

Enhanced bond calculation - Universal Parser automatically detects ISIN vs description

{
    "description": "US912810TJ79",       // ISIN code
    "price": 71.66
}

OR

{
    "bond_input": "T 4.1 02/15/28",      // Treasury description
    "price": 99.5,
    "settlement_date": "2025-07-15"
}

OR

{
    "isin": "PANAMA, 3.87%, 23-Jul-2060",  // Even complex descriptions work!
    "price": 56.60
}
                

✅ Enhancement: Universal Parser accepts any input format automatically

POST /api/v1/portfolio/analysis

Portfolio analysis with Universal Parser for all bonds

{
    "data": [
        {"BOND_CD": "US912810TJ79", "CLOSING PRICE": 71.66, "WEIGHTING": 25.0},
        {"description": "PANAMA, 3.87%, 23-Jul-2060", "CLOSING PRICE": 56.60, "WEIGHTING": 15.0}
    ]
}
                

✅ Enhancement: Mix ISIN codes and descriptions in same portfolio

GET /health

Enhanced health check with Universal Parser status

✅ New: Includes parser availability and test results

GET /api/v1/version

Version information with Universal Parser capabilities

GET /test/status

Get latest test results - Shows most recent test execution status

✅ New: View test results with baseline comparisons

POST /test/run

Run test suite - Execute the full test suite and get results

✅ New: On-demand test execution

GET /test/treasury

Quick treasury test - Test US Treasury 3% 15/08/52 with fixed settlement

✅ New: Verify expected values match

GET /test/baseline

Get baseline values - View current baseline calculation values

✅ New: Reference values for testing

🎯 Key Enhancements

📊 Response Format

Rich Self-Documenting: All responses include field descriptions, metadata, and calculation details

Bloomberg Terminal Style: YAS format for professional bond analytics

⚠️ Deprecated Endpoints (Backward Compatibility)

Old endpoints still work but are deprecated:

⚠️ Note: Old endpoints will be removed in a future version. Please update your integrations.