Package com.opengamma.analytics.financial.credit.creditdefaultswapoption.definition

Examples of com.opengamma.analytics.financial.credit.creditdefaultswapoption.definition.CreditDefaultSwapOptionDefinition.withRecoveryRate()


    if (recoveryRateObject == null) {
      throw new OpenGammaRuntimeException("Could not get recovery rate");
    }
    final double recoveryRate = (Double) recoveryRateObject;
    CreditDefaultSwapOptionDefinition definition = security.accept(converter);
    definition = definition.withRecoveryRate(recoveryRate);
    final Object yieldCurveObject = inputs.getValue(ValueRequirementNames.YIELD_CURVE);
    if (yieldCurveObject == null) {
      throw new OpenGammaRuntimeException("Could not get yield curve");
    }
    final Object spreadCurveObject = inputs.getValue(ValueRequirementNames.CREDIT_SPREAD_CURVE);
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.