Class MarginCalculator
java.lang.Object
net.finmath.smartcontract.valuation.implementation.MarginCalculator
Calculation of the settlement using Smart Derivative Contract with an Swap contained in a FPML,
using a valuation oracle with historic market data.
For details see the corresponding white paper at SSRN.
- Author:
- Christian Fries, Peter Kohl-Landgraf, Björn Paffen, Stefanie Weddigen, Dietmar Schnabel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue
(MarketDataList marketData, String productData) getValue
(MarketDataList marketDataStart, MarketDataList marketDataEnd, String productData) getValueAtEvaluationTime
(String marketData, String productData, LocalDateTime evaluationTime) Calculates the margin between t_2 and t_1.getValues
(MarketDataList marketDataStart, MarketDataList marketDataEnd, String productData)
-
Constructor Details
-
MarginCalculator
-
MarginCalculator
public MarginCalculator()
-
-
Method Details
-
getValues
public Map<String,BigDecimal> getValues(String marketDataStart, String marketDataEnd, String productData) throws Exception Calculates the margin between t_2 and t_1.- Parameters:
marketDataStart
- Curve name at time t_1.marketDataEnd
- Curve name at time t_2.productData
- Trade.- Returns:
- the margin (MarginResult).
- Throws:
Exception
- Exception
-
getValue
-
getValues
public Map<String,BigDecimal> getValues(MarketDataList marketDataStart, MarketDataList marketDataEnd, String productData) throws Exception - Throws:
Exception
-
getValue
public MarginResult getValue(MarketDataList marketDataStart, MarketDataList marketDataEnd, String productData) throws Exception - Throws:
Exception
-
getValue
- Throws:
Exception
-
getValueAtEvaluationTime
public ValueResult getValueAtEvaluationTime(String marketData, String productData, LocalDateTime evaluationTime) throws Exception - Throws:
Exception
-
getValue
- Throws:
Exception
-