Class SettlementRiskAnalyzer
java.lang.Object
com.quantfinlib.risk.SettlementRiskAnalyzer
Settlement (Herstatt) risk: the exposure created when you pay away one
currency before receiving the other leg. Named for Bankhaus Herstatt (1974),
which was closed after receiving DEM but before paying out USD.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne settlement instruction pair: we pay one leg and receive the other. -
Method Summary
Modifier and TypeMethodDescriptionTotal at-risk receive amounts per counterparty: sum of legs where payment goes out before the countervalue arrives.static doublepeakExposure(List<SettlementRiskAnalyzer.SettlementLeg> legs, String counterparty) Peak intraday settlement exposure to one counterparty: the maximum total receive-amount outstanding (paid but not yet received) at any point in time.
-
Method Details
-
herstattExposure
Total at-risk receive amounts per counterparty: sum of legs where payment goes out before the countervalue arrives. -
peakExposure
public static double peakExposure(List<SettlementRiskAnalyzer.SettlementLeg> legs, String counterparty) Peak intraday settlement exposure to one counterparty: the maximum total receive-amount outstanding (paid but not yet received) at any point in time.
-