JACTUS Documentation¶
Welcome to the JACTUS documentation!
JACTUS is a high-performance implementation of the ACTUS (Algorithmic Contract Types Unified Standards) specification using JAX for automatic differentiation and GPU acceleration.
Contents:
- Installation
- Quick Start
- API Reference
- User Guides
- ACTUS Specification Overview
- JACTUS Architecture Guide
- Array-Mode Simulation & Portfolio API
- When to Use Array-Mode vs Scalar
- Coverage
- Architecture: Two-Phase Pipeline
- Quick Start: Single Contract
- Quick Start: Portfolio (Recommended)
- Unified Portfolio API Reference
- Per-Type Array API
- Per-Type Reference
- Batch Processing Pipeline
- Performance
- Automatic Differentiation
- GPU/TPU Acceleration
- Types Without Array-Mode
- Shared Infrastructure:
array_common.py - Examples
- PAM Contract: A Complete Architecture Walkthrough
- Derivative Contracts in JACTUS
Features¶
18 Contract Types: Principal, non-principal, and derivative instruments
High Performance: JAX JIT compilation, GPU/TPU acceleration, array-mode portfolio API
Differentiable: Automatic differentiation for risk analytics (DV01, duration, sensitivities)
CLI: Full
jactuscommand-line interface for simulation, risk analytics, and portfolio managementMCP Server: AI assistant integration via Model Context Protocol
Type Safety: Full type annotations and mypy support
Well Tested: 1400+ tests with cross-validation against ACTUS reference
Quick Links¶
Examples¶
Interactive Jupyter Notebooks (examples/notebooks/):
Annuity Mortgage - 30-year mortgage with amortization visualization
Options Contracts - Call/Put options with payoff diagrams
Interest Rate Cap - Rate protection scenarios and calculations
Stock & Commodity - Position tracking and derivative underliers
Python Scripts (examples/):
PAM, LAM contracts
Interest rate swaps
FX swaps
Cross-currency basis swaps