Class FxVolSurface.Builder
java.lang.Object
com.quantfinlib.fx.FxVolSurface.Builder
- Enclosing class:
FxVolSurface
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Creates an instance; the explicit form of the default constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(double expiryYears, double forward, double atmVol, double rr25, double bf25) 25Δ-only smile quote (rr/bf in absolute vol, e.g. 0.01 = 1 vol point).add(double expiryYears, double forward, double atmVol, double rr25, double bf25, double rr10, double bf10) Full five-pillar quote with 10Δ wings.add(double expiryYears, double forward, double foreignDiscountFactor, double atmVol, double rr25, double bf25, double rr10, double bf10) Quote with the foreign discount factor e^{−r_f T}, needed for spot delta conventions.build()premiumAdjusted(boolean value) Shortcut: forward delta, premium-adjusted or not.
-
Constructor Details
-
Builder
public Builder()Creates an instance; the explicit form of the default constructor.
-
-
Method Details
-
add
public FxVolSurface.Builder add(double expiryYears, double forward, double atmVol, double rr25, double bf25) 25Δ-only smile quote (rr/bf in absolute vol, e.g. 0.01 = 1 vol point). -
add
public FxVolSurface.Builder add(double expiryYears, double forward, double atmVol, double rr25, double bf25, double rr10, double bf10) Full five-pillar quote with 10Δ wings. -
add
public FxVolSurface.Builder add(double expiryYears, double forward, double foreignDiscountFactor, double atmVol, double rr25, double bf25, double rr10, double bf10) Quote with the foreign discount factor e^{−r_f T}, needed for spot delta conventions. Pass NaN for rr10/bf10 when there are no 10Δ wings. -
deltaConvention
-
atmConvention
-
butterflyQuote
-
build
-