Package com.opengamma.analytics.financial.interestrate.future.derivative

Examples of com.opengamma.analytics.financial.interestrate.future.derivative.InterestRateFutureOptionMarginSecurity.accept()


  @Override
  protected Set<ComputedValue> getResult(final InstrumentDerivative irFutureOptionTransaction, final YieldCurveWithBlackCubeBundle data, final ValueSpecification spec, Set<ValueRequirement> desiredValues) {
    Double gamma = null;
    if (irFutureOptionTransaction instanceof InterestRateFutureOptionMarginTransaction) {
      final InterestRateFutureOptionMarginSecurity irFutureOptionSecurity = ((InterestRateFutureOptionMarginTransaction) irFutureOptionTransaction).getUnderlyingOption();
      gamma = irFutureOptionSecurity.accept(CALCULATOR, data);
    } else {
      s_logger.error("Unexpected security type! {}", irFutureOptionTransaction.getClass());
    }
    return Collections.singleton(new ComputedValue(spec, gamma));
  }
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.