Package com.opengamma.analytics.financial.forex.derivative

Examples of com.opengamma.analytics.financial.forex.derivative.ForexNonDeliverableOption


   * @deprecated Use the method that does not take yield curve names
   */
  @Deprecated
  @Override
  public ForexNonDeliverableOption toDerivative(final ZonedDateTime date, final String... yieldCurveNames) {
    return new ForexNonDeliverableOption(_underlyingNDF.toDerivative(date, yieldCurveNames), _isCall, _isLong);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  @Override
  public ForexNonDeliverableOption toDerivative(final ZonedDateTime date) {
    return new ForexNonDeliverableOption(_underlyingNDF.toDerivative(date), _isCall, _isLong);
  }
View Full Code Here

  @SuppressWarnings("deprecation")
  public void toDerivativeDeprecated() {
    final String krw = "Discounting KRW";
    final String usd = "Discounting USD";
    final String[] curveNames = new String[] {krw, usd};
    final ForexNonDeliverableOption ndoConverted = NDO_DEFINITION.toDerivative(REFERENCE_DATE, curveNames);
    final ForexNonDeliverableOption ndoExpected = new ForexNonDeliverableOption(NDF_DEFINITION.toDerivative(REFERENCE_DATE, curveNames), IS_CALL, IS_LONG);
    assertEquals("Forex NDO - toDerivatives", ndoExpected, ndoConverted);
  }
View Full Code Here

  @Test
  /**
   * Tests the class toDerivative method.
   */
  public void toDerivative() {
    final ForexNonDeliverableOption ndoConverted = NDO_DEFINITION.toDerivative(REFERENCE_DATE);
    final ForexNonDeliverableOption ndoExpected = new ForexNonDeliverableOption(NDF_DEFINITION.toDerivative(REFERENCE_DATE), IS_CALL, IS_LONG);
    assertEquals("Forex NDO - toDerivatives", ndoExpected, ndoConverted);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.financial.forex.derivative.ForexNonDeliverableOption

Copyright © 2018 www.massapicom. 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.