Examples of payDomestic()


Examples of com.opengamma.analytics.financial.forex.derivative.ForexOptionDigital.payDomestic()

      if (forex instanceof ForexOptionVanilla) {
        final ForexOptionVanilla fxDerivative = (ForexOptionVanilla) forex;
        spot = data.getFxRates().getFxRate(fxDerivative.getCurrency1(), fxDerivative.getCurrency2());
      } else if (forex instanceof ForexOptionDigital) {
        final ForexOptionDigital fxDerivative = (ForexOptionDigital) forex;
        if (fxDerivative.payDomestic()) {
          spot = data.getFxRates().getFxRate(fxDerivative.getCurrency1(), fxDerivative.getCurrency2());    
        } else {
          spot = data.getFxRates().getFxRate(fxDerivative.getCurrency2(), fxDerivative.getCurrency1());      
        }
      } else if (forex instanceof ForexOptionSingleBarrier) {
View Full Code Here

Examples of com.opengamma.analytics.financial.forex.derivative.ForexOptionVanilla.payDomestic()

      if (forex instanceof ForexOptionVanilla) {
        final ForexOptionVanilla fxDerivative = (ForexOptionVanilla) forex;
        spot = data.getFxRates().getFxRate(fxDerivative.getCurrency1(), fxDerivative.getCurrency2());
      } else if (forex instanceof ForexOptionDigital) {
        final ForexOptionDigital fxDerivative = (ForexOptionDigital) forex;
        if (fxDerivative.payDomestic()) {
          spot = data.getFxRates().getFxRate(fxDerivative.getCurrency1(), fxDerivative.getCurrency2());    
        } else {
          spot = data.getFxRates().getFxRate(fxDerivative.getCurrency2(), fxDerivative.getCurrency1());      
        }
      } else if (forex instanceof ForexOptionSingleBarrier) {
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.