Class VolSurface.Builder

java.lang.Object
com.quantfinlib.pricing.VolSurface.Builder
Enclosing class:
VolSurface

public static final class VolSurface.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
      Creates an instance; the explicit form of the default constructor.
  • Method Details

    • forward

      public VolSurface.Builder forward(double expiryYears, double forward)
      Forward for an expiry. Either give one for every quoted expiry (time interpolation at fixed log-moneyness) or none (fixed strike).
    • add

      public VolSurface.Builder add(double expiryYears, double strike, double vol)
      Adds one pillar quote.
    • addFromPrice

      public VolSurface.Builder addFromPrice(BlackScholes.OptionType type, double marketPrice, double spot, double strike, double rate, double carry, double expiryYears)
      Adds a pillar from a market option price via implied-vol inversion.
    • build

      public VolSurface build()