Examples of EquityIndexFutureOption


Examples of com.opengamma.analytics.financial.equity.option.EquityIndexFutureOption

        optionPrice = derivative.accept(s_pvCalculator, market) / option.getUnitAmount();
      } else {
        optionPrice = marketPrice;
      }
    } else if (derivative instanceof EquityIndexFutureOption) {
      final EquityIndexFutureOption option = (EquityIndexFutureOption) derivative;
      strike = option.getStrike();
      timeToExpiry = option.getExpiry();
      isCall = option.isCall();
      if (marketPrice == null) {
        optionPrice = derivative.accept(s_pvCalculator, market) / option.getPointValue();
      } else {
        optionPrice = marketPrice;
      }

    } else {
View Full Code Here

Examples of com.opengamma.analytics.financial.equity.option.EquityIndexFutureOption

      strike = option.getStrike();
      timeToExpiry = option.getTimeToExpiry();
      isCall = option.isCall();
      optionPrice = derivative.accept(s_pvCalculator, market) / option.getUnitAmount();
    } else if (derivative instanceof EquityIndexFutureOption) {
      final EquityIndexFutureOption option = (EquityIndexFutureOption) derivative;
      strike = option.getStrike();
      timeToExpiry = option.getExpiry();
      isCall = option.isCall();
      optionPrice = derivative.accept(s_pvCalculator, market) / option.getPointValue();
    } else {
      throw new OpenGammaRuntimeException("Unexpected InstrumentDerivative type");
    }
    final double spot = market.getForwardCurve().getSpot();
    final double discountRate = market.getDiscountCurve().getInterestRate(timeToExpiry);
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.