Examples of BlackBondFuturesSmilePriceProvider


Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public double price(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(security, "security");
    ArgumentChecker.notNull(black, "Black  data");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return price(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public MulticurveSensitivity priceCurveSensitivity(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(security, "security");
    ArgumentChecker.notNull(black, "Black  data");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return priceCurveSensitivity(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public SurfaceValue priceBlackSensitivity(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(black, "black data");
    ArgumentChecker.notNull(security, "security");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return priceBlackSensitivity(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public double priceDelta(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(black, "black data");
    ArgumentChecker.notNull(security, "security");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return priceDelta(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public double priceGamma(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(black, "black data");
    ArgumentChecker.notNull(security, "security");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return priceGamma(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public double priceVega(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(black, "black data");
    ArgumentChecker.notNull(security, "security");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return priceVega(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

   */
  public double impliedVolatility(final BondFutureOptionPremiumSecurity security, final BlackBondFuturesSmileProviderInterface black) {
    ArgumentChecker.notNull(black, "black data");
    ArgumentChecker.notNull(security, "security");
    final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), black.getIssuerProvider());
    return impliedVolatility(security, new BlackBondFuturesSmilePriceProvider(black, priceFuture));
  }
View Full Code Here

Examples of com.opengamma.analytics.financial.provider.description.interestrate.BlackBondFuturesSmilePriceProvider

    final MultipleCurrencyAmount pvComputed = METHOD_BLACK_TRA.presentValue(BOND_FUTURE_OPTION_TRA_CALL, BLACK_PRICE_MULTICURVES);
    final double priceCall = METHOD_BLACK_SEC.price(BOND_FUTURE_OPTION_SEC_CALL, BLACK_PRICE_MULTICURVES);
    final MultipleCurrencyAmount pvPremium = METHOD_PAY_FIXED.presentValue(BOND_FUTURE_OPTION_TRA_CALL.getPremium(), ISSUER_MULTICURVES.getMulticurveProvider());
    assertEquals("BondFutureOptionPremiumTransactionBlackSurfaceMethod: present value", pvComputed.getAmount(USD), pvPremium.getAmount(USD) + priceCall * QUANTITY * NOTIONAL, TOLERANCE_PV);
    final double priceFutures = METHOD_FUTURES.price(BOND_FUT, ISSUER_MULTICURVES);
    final MultipleCurrencyAmount pv2 = METHOD_BLACK_TRA.presentValue(BOND_FUTURE_OPTION_TRA_CALL, new BlackBondFuturesSmilePriceProvider(BLACK_MULTICURVES, priceFutures));
    final MultipleCurrencyAmount pv3 = METHOD_BLACK_TRA.presentValue(BOND_FUTURE_OPTION_TRA_CALL, BLACK_MULTICURVES);
    assertEquals("BondFutureOptionPremiumTransactionBlackSurfaceMethod: present value", pv2.getAmount(USD), pv3.getAmount(USD), TOLERANCE_PV);
  }
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.