# Cross-Border Algorithmic Settlement Optimizer (CASO)

## Overview

CASO computes the most efficient settlement routing path globally.

## Optimization Function

```
optimal_route = argmin(
   fx_cost + liquidity_penalty + volatility_risk + SRI_factor + SSU_cost
)
```

## Services

### Optimizer Service

Calculates optimal route based on multiple cost factors.

**Service**: `caso-optimizer.service.ts`

**API Endpoint**: `POST /api/v1/caso/optimize`

### Routing Service

Applies optimized routes to target systems.

**Service**: `caso-routing.service.ts`

**API Endpoint**: `POST /api/v1/caso/route`

## Integration

CASO feeds into:
- GPN (routing)
- M-RTGS (queueing)
- SIRE (settlement optimization)
- ALPS (liquidity planning)

## Database Models

- `CasoRoute` - Optimized route records
- `CasoOptimization` - Optimization results

## Integration Points

- SIRE routing (existing)
- GPN switching
- M-RTGS queue manager
- ALPS liquidity engine
- SRI calculator (existing)

