Expand description
Financial Modeling Library - Secure Financial Computing and Risk Analysis
This module provides high-performance financial modeling operations leveraging Phase 2 enhancements:
- Fiduciary Cryptography (ML-DSA) for secure financial transactions
- Zero-Knowledge Semantic Proofs for privacy-preserving financial analysis
- Hardware-Sympathetic Storage (ZNS) for zero-copy financial data
- Statistical Computing Library for advanced financial analytics
Modules§
- portfolio_
risk - Real return-based portfolio risk metrics (volatility, historical VaR/CVaR, Sharpe, Sortino, max-drawdown) computed from each asset’s price history. Split into its own library submodule (PROJECT RULE §11) with its own tests against hand-computed statistics. Real return-based portfolio risk metrics.
Structs§
- Access
Policy - Access policy
- Aggregation
Function - Aggregation functions
- Aggregation
Rule - Aggregation rules
- Alert
- Alerts
- Alert
Escalation - Alert escalation
- Alert
Manager - Alert manager
- Anomaly
Detector - Anomaly detector
- Anomaly
Pattern - Anomaly patterns
- Asset
- Asset representation
- Asset
Catalog - Asset catalog
- Asset
Class - Asset class
- Asset
Info - Asset information
- Asset
Manager - Asset manager
- Asset
Relationship - Asset relationships
- Asset
Validator - Asset validator
- Assumption
- Assumptions
- Attribution
Analyzer - Attribution analyzer
- Attribution
Factor - Attribution factors
- Attribution
Model - Attribution models
- Attribution
Result - Attribution results
- Audit
Entry - Audit entry
- Authentication
Requirement - Authentication requirements
- Backtest
Results - Backtest results
- Benchmark
- Benchmarks
- Benchmark
Comparator - Benchmark comparator
- Cash
Flow - Cash flows
- Cash
Flow Projection - Cash flow projections
- Channel
Configuration - Channel configuration
- Clearing
House - Clearing house
- Collateral
Requirements - Collateral requirements
- Comparison
Metrics - Comparison metrics
- Compliance
Checker - Compliance checker
- Compliance
Condition - Compliance conditions
- Compliance
Monitor - Compliance monitor
- Compliance
Report - Per-order compliance report produced by
ComplianceMonitor::check_order. - Compliance
Result - Compliance check result for a portfolio
- Compliance
Rule - Compliance rules evaluated by the
ComplianceMonitorrule engine. - Constraint
Bounds - Constraint bounds
- Correlation
Matrix - Correlation matrix
- Cost
Factor - Cost factors
- Data
Aggregator - Data aggregator
- Data
Quality - Data quality
- Data
Source - Data sources
- Delivery
Record - A recorded delivery attempt — the persisted form of a
DeliveryResult. - Delivery
Result - The outcome of attempting to distribute a report to a single channel.
- Delivery
Status - Delivery status
- Delivery
Tracker - Delivery tracker — records every delivery attempt per channel so success rates and history can be queried after the fact.
- Detection
Algorithm - Detection algorithms
- Detection
Algorithm Parameters - Detection algorithm parameters
- Escalation
Condition - Escalation conditions
- Escalation
History - Escalation history
- Escalation
Rule - Escalation rules
- Escalation
Step - Escalation steps
- Execution
Engine - Execution engine
- Execution
Parameters - Execution parameters
- Execution
Strategy - Execution strategies
- FeeStructure
- Fee structures
- Financial
Modeling Library - Financial Modeling Library Manager
- Financial
Operation Result - Financial operation result
- Financial
Performance Metrics - Financial library performance summary metrics
- Financial
Report - A generated financial report ready for distribution.
- Generation
Strategy - Generation strategies
- Generation
Strategy Parameters - Generation strategy parameters
- Liquidity
Constraints - Liquidity constraints
- Margin
Calculator - Margin calculator
- Margin
Method - Margin methods
- Margin
Method Parameters - Margin method parameters
- Margin
Requirements - Margin requirements
- Market
Data - Market data
- Market
Scenario - A market scenario used for scenario-based stress testing.
- Notification
Channel - Notification channels
- Notification
System - Notification system
- Notification
Template - Notification templates
- Objective
Function - Objective functions
- Optimization
Algorithm - Optimization algorithms
- Optimization
Constraint - Optimization constraints
- Optimization
Engine - Optimization engine
- Optimization
Parameters - Optimization parameters
- Option
Parameters - Option
Price - Order
- Orders
- Order
Compliance Checker - Order compliance checker
- Order
Compliance Condition - Order compliance conditions
- Order
Compliance Rule - Order compliance rules
- Order
Manager - Order manager
- Order
Routing - Order routing
- Order
Validation - Order validation
- Order
Validation Rule - Order validation rules
- Performance
Metrics - Performance metrics
- Performance
Tracker - Performance tracker
- Portfolio
- Portfolio representation
- Portfolio
Access Control - Portfolio access control
- Portfolio
Audit Trail - Portfolio audit trail
- Portfolio
Manager - Portfolio manager for investment portfolio management
- Portfolio
Metadata - Portfolio metadata
- Portfolio
Storage - Portfolio storage using ZNS for efficient portfolio data
- Position
- Positions
- Position
Limit - Position limits
- Position
Manager - Position manager
- Price
Data - Price data
- Price
Feed - Price feed
- Pricing
Engine - Pricing engine
- Pricing
Model - Pricing models
- Pricing
Model Parameters - Pricing model parameters
- Priority
Factor - Priority factors
- Rebalance
Trade - A single rebalance trade produced by
RebalancingEngine::rebalance. - Rebalancing
Constraints - Rebalancing constraints
- Rebalancing
Engine - Rebalancing engine
- Rebalancing
Parameters - Rebalancing parameters
- Rebalancing
Strategy - Rebalancing strategies
- Regulatory
Constraints - Regulatory constraints
- Regulatory
Framework - Regulatory frameworks
- Regulatory
Limit - Regulatory limits
- Regulatory
Requirement - Regulatory requirements
- Report
Distributor - Report distributor
- Report
Generator - Report generator
- Report
Section - Report sections
- Report
Template - Report templates
- Reporting
Engine - Reporting engine
- Retention
Policy - Retention policy
- Risk
Analyzer - Risk analyzer
- Risk
Assessor - Risk assessor
- Risk
Management - Risk management
- Risk
Metric - Risk metrics
- Risk
Metrics - Risk analysis metrics for a portfolio
- Risk
Model - Risk models
- Risk
Model Parameters - Risk model parameters
- Risk
Profile - Risk profile
- Routing
Parameters - Routing parameters
- Routing
Strategy - Routing strategies
- Rule
Result - Result of evaluating a single compliance rule against an order.
- Scenario
- Scenarios
- Scenario
Analyzer - Scenario analyzer
- Scenario
Parameters - Scenario parameters
- Scenario
Result - The impact of a single defined
MarketScenarioon a portfolio. - Screening
Entry - Screening entries
- Screening
List - Screening lists
- Section
Content - Section content
- Sensitivity
Analyzer - Sensitivity analyzer
- Sensitivity
Factor - Sensitivity factors
- Settlement
Compliance Checker - Settlement compliance checker
- Settlement
Compliance Condition - Settlement compliance conditions
- Settlement
Compliance Rule - Settlement compliance rules
- Settlement
Engine - Settlement engine
- Settlement
Method - Settlement methods
- Settlement
Validation Rule - Settlement validation rules
- Settlement
Validator - Settlement validator
- Stress
Test - Stress tests
- Stress
Test Result - Aggregated results of a Monte Carlo stress-test simulation run.
- Stress
Test Results - Stress test results
- Surveillance
Condition - Surveillance conditions
- Surveillance
Engine - Surveillance engine
- Surveillance
Rule - Surveillance rules
- Technical
Indicators - Technical indicators
- Time
Restrictions - Time restrictions
- Trade
Result - Trade execution result
- Trading
Engine - Trading engine
- Trading
Venue - Trading venues
- Transaction
Costs - Transaction costs
- Validation
Results - Validation results
- Validation
Rule - Validation rules
- Valuation
Engine - Valuation engine
- Valuation
Method - Valuation methods
- Valuation
Method Parameters - Valuation method parameters
- Venue
Performance - Venue performance
- Venue
Selector - Venue selector
- Volume
Data - Volume data
Enums§
- Aggregation
Rule Type - Aggregation rule types
- Alert
Severity - Alert severity
- Alert
Status - Alert status
- Alert
Type - Alert types
- Anomaly
Pattern Type - Anomaly pattern types
- Asset
Relationship Type - Asset relationship types
- Asset
Type - Asset types
- Attribution
Model Type - Attribution model types
- Authentication
Method - Authentication methods
- Benchmark
Type - Benchmark types
- Cash
Flow Type - Cash flow types
- Comparison
Operator - Comparison operators
- Compliance
Action - Compliance actions
- Compliance
Flag - Compliance flags
- Compliance
Rule Type - Compliance rule types evaluated by the
ComplianceMonitorrule engine. - Compliance
Status - Compliance status
- Compliance
Value - Compliance values
- Constraint
Type - Constraint types
- Content
Format - Content formats
- Content
Type - Content types
- Data
Source Type - Data source types
- Detection
Algorithm Type - Detection algorithm types
- Distribution
Channel - Distribution channels — the concrete transport targets a
FinancialReportcan be sent to. There is no real network in the library, so each variant carries only the configuration needed to validate a delivery attempt. - Distribution
Error - Distribution error types
- Escalation
Action - Escalation actions
- Escalation
Value - Escalation values
- Execution
Strategy Type - Execution strategy types
- Factor
Type - Factor types
- Feed
Type - Feed types
- Financial
Error - Financial error types
- Generation
Strategy Type - Generation strategy types
- Investment
Strategy - Investment strategies
- Liquidity
Needs - Liquidity needs
- Margin
Method Type - Margin method types
- Metric
Type - Metric types
- Notification
Channel Type - Notification channel types
- Notification
Format - Notification formats
- Notification
Template Type - Notification template types
- Objective
Function Type - Objective function types
- Optimization
Algorithm Type - Optimization algorithm types
- Option
Type - Order
Compliance Action - Order compliance actions
- Order
Compliance Value - Order compliance values
- Order
Side - Order sides
- Order
Status - Order status
- Order
Type - Order types
- Order
Validation Action - Order validation actions
- Order
Validation Rule Type - Order validation rule types
- Permission
- Permissions
- Portfolio
Action - Portfolio actions
- Pricing
Model Type - Pricing model types
- Rebalancing
Strategy Type - Rebalancing strategy types
- Regulatory
Limit Type - Regulatory limit types
- Report
Section Type - Report section types
- Report
Template Type - Report template types
- Requirement
Type - Requirement types
- Risk
Level - Risk levels
- Risk
Model Type - Risk model types
- Risk
Tolerance - Risk tolerance levels
- Routing
Strategy Type - Routing strategy types
- Scenario
Type - Scenario types
- Screening
List Type - Screening list types
- Settlement
Compliance Action - Settlement compliance actions
- Settlement
Compliance Value - Settlement compliance values
- Settlement
Method Type - Settlement method types
- Settlement
Validation Action - Settlement validation actions
- Settlement
Validation Rule Type - Settlement validation rule types
- Stress
Test Type - Stress test types
- Surveillance
Action - Surveillance actions
- Surveillance
Rule Type - Surveillance rule types
- Surveillance
Value - Surveillance values
- Time
Horizon - Time horizons
- Time
InForce - Time in force
- Trade
Action - Direction of a
RebalanceTrade. - Trade
Status - Validation
Action - Validation actions
- Validation
Rule Type - Validation rule types
- Valuation
Method Type - Valuation method types
- Venue
Type - Venue types
Type Aliases§
- Compliance
Error - Error type returned by compliance-rule evaluation. Aliased to the library’s
general
FinancialErrorso callers can handle all financial errors uniformly (theFinancialError::ComplianceErrorvariant carries the compliance message).