Examples of OptionType


Examples of com.opengamma.financial.security.option.OptionType

    }
    return createNode(EquitySecurity.SECURITY_TYPE, securities);
  }

  private EquityBarrierOptionSecurity createEquityBarrierOptionSecurity() {
    final OptionType optionType = optionType();
    final double strike = 0;
    final Currency currency = currency();
    final ExternalId underlyingId = createEquitySecurity().getExternalIdBundle().getExternalId(ExternalSchemes.BLOOMBERG_TICKER);
    final ExerciseType exerciseType = exerciseType();
    final Expiry expiry = expiry();
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

    final ExternalId underlyingIdentifier = ExternalId.of(ExternalSchemes.BLOOMBERG_TICKER, "US0003M Index");
    final double pointValue = 0;
    final boolean margined = bool();
    final Currency currency = currency();
    final double strike = 0;
    final OptionType optionType = optionType();
    final EquityIndexDividendFutureOptionSecurity security = new EquityIndexDividendFutureOptionSecurity(exchange, expiry, exerciseType, underlyingIdentifier, pointValue, margined, currency, strike,
        optionType);
    store(security);
    return security;
  }
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

    }
    return createNode(EquityIndexDividendFutureOptionSecurity.SECURITY_TYPE, securities);
  }

  private EquityIndexOptionSecurity createEquityIndexOptionSecurity() {
    final OptionType optionType = optionType();
    final double strike = 0;
    final Currency currency = currency();
    final ExternalId underlyingId = ExternalId.of(ExternalSchemes.BLOOMBERG_TICKER, "AAPL US Equity");
    final ExerciseType exerciseType = exerciseType();
    final Expiry expiry = expiry();
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

    }
    return createNode(EquityIndexOptionSecurity.SECURITY_TYPE, securities);
  }

  private EquityOptionSecurity createEquityOptionSecurity() {
    final OptionType optionType = optionType();
    final double strike = 0;
    final Currency currency = currency();
    final ExternalId underlyingIdentifier = createEquitySecurity().getExternalIdBundle().getExternalId(ExternalSchemes.BLOOMBERG_TICKER);
    final ExerciseType exerciseType = exerciseType();
    final Expiry expiry = expiry();
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

    final ExternalId underlyingIdentifier = createInterestRateFutureSecurity().getExternalIdBundle().getExternalId(_security);
    final double pointValue = 0;
    final boolean margined = bool();
    final Currency currency = Currency.USD; // currency(); // Only got a USD surface at the moment
    final double strike = 0;
    final OptionType optionType = optionType();
    final IRFutureOptionSecurity security = new IRFutureOptionSecurity(exchange, expiry, exerciseType, underlyingIdentifier, pointValue, margined, currency, strike, optionType);
    security.addExternalId(ExternalId.of(ExternalSchemes.BLOOMBERG_TICKER, "US0003M Index"));
    store(security);
    return security;
  }
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

    }
    if (!BloombergDataUtils.isValidField(optionExerciseType)) {
      s_logger.warn("option exercise type is missing, cannot construct equityOption security");
      return null;
    }
    OptionType optionType = getOptionType(putOrCall);
    //get year month day from expiryDate in the yyyy-mm-dd format
    LocalDate expiryLocalDate = null;
    try {
      expiryLocalDate = LocalDate.parse(expiryDate);
    } catch (Exception e) {
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

        + _expiry + ", optionType=" + _optionType + ", strike=" + _strike + "]";
  }

  // -------- PRIVATE SUBROUTINES --------
  private OptionType determineOptionType(String optionTypeCode) {
    OptionType optionType = null;
    optionTypeCode = optionTypeCode.toUpperCase();
    if (optionTypeCode.equals("C")) {
      optionType = OptionType.CALL;
    } else if (optionTypeCode.equals("P")) {
      optionType = OptionType.PUT;
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

  }

  //note this will roll over on 2010-12-18 and the expected Buid and Expiry
  // date will change
  public static EquityIndexOptionSecurity makeSPXIndexOptionSecurity() {
    OptionType optionType = OptionType.CALL;
    double strike = 1100.0;
    Expiry expiry = new Expiry(DateUtils.getUTCDate(2010, 12, 18));
    ExternalId underlyingUniqueID = ExternalSchemes.bloombergBuidSecurityId("EI09SPX");
   
    final EquityIndexOptionSecurity security = new EquityIndexOptionSecurity(optionType, strike, USD, underlyingUniqueID, new EuropeanExerciseType(), expiry, 100.0, "US");
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

  }


  public static EquityIndexFutureOptionSecurity makeEquityIndexFutureOptionSecurity() {

    OptionType optionType = OptionType.CALL;
    double strike = 1000.0;
    Expiry expiry = new Expiry(DateUtils.getUTCDate(2013, 3, 15));
    ExternalId underlyingUniqueID = ExternalSchemes.bloombergBuidSecurityId("IX14248603-0");

    final EquityIndexFutureOptionSecurity security = new EquityIndexFutureOptionSecurity(
View Full Code Here

Examples of com.opengamma.financial.security.option.OptionType

  }


  public static EquityIndexDividendFutureOptionSecurity makeEquityIndexDividendFutureOptionSecurity() {

    OptionType optionType = OptionType.CALL;
    double strike = 100.0;
    Expiry expiry = new Expiry(DateUtils.getUTCDate(2013, 12, 20));
    ExternalId underlyingUniqueID = ExternalSchemes.bloombergBuidSecurityId("IX6817069-0");

    final EquityIndexDividendFutureOptionSecurity security = new EquityIndexDividendFutureOptionSecurity(
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.