quantsupport 0.1.6

Rust quantitative finance library for derivatives pricing, yield-curve bootstrapping, AAD risk, Monte Carlo exposure, and XVA.
Documentation
1
2
3
4
5
6
7
8
9
use crate::xva::contigentclaim::ContingentClaim;

/// A preprocessing step applied to each [`ContingentClaim`] before
/// simulation requests are collected.
pub trait ClaimPreprocessor {
    /// Mutate a single claim in place (e.g. resolve discount curve,
    /// set realized fixings, compress, …).
    fn process(&self, claim: &mut ContingentClaim);
}