Examples of AsymmetricPowerOptionDefinition


Examples of com.opengamma.analytics.financial.model.option.definition.AsymmetricPowerOptionDefinition

    MODEL.getPricingFunction(null);
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void testNullData() {
    MODEL.getPricingFunction(new AsymmetricPowerOptionDefinition(STRIKE, EXPIRY, 1, true)).evaluate((StandardOptionDataBundle) null);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.option.definition.AsymmetricPowerOptionDefinition

    final StandardOptionDataBundle bsBundle = getModifiedDataBundle(BUNDLE, power);
    return BS_MODEL.getGreeks(getDefinition(power, isCall), bsBundle, REQUIRED_GREEKS).get(Greek.FAIR_PRICE);
  }

  private AsymmetricPowerOptionDefinition getDefinition(final double power, final boolean isCall) {
    return new AsymmetricPowerOptionDefinition(STRIKE, EXPIRY, power, isCall);
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.model.option.definition.AsymmetricPowerOptionDefinition

  private CappedPowerOptionDefinition getDefinition(final double power, final double cap, final boolean isCall) {
    return new CappedPowerOptionDefinition(STRIKE, EXPIRY, power, cap, isCall);
  }

  private AsymmetricPowerOptionDefinition getDefinition(final double power, final boolean isCall) {
    return new AsymmetricPowerOptionDefinition(STRIKE, EXPIRY, power, isCall);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.