Package com.opengamma.financial.timeseries.exchange

Examples of com.opengamma.financial.timeseries.exchange.Exchange


    if (!BloombergDataUtils.isValidField(currencyCode)) {
      logMissingData("equity currency", name);
      return null;
    }
   
    final Exchange exchangeData = _exchangeDataProvider.getExchange(micExchangeCode);
    if (exchangeData == null) {
      logMissingData("equity exchange data (common stock)", name);
      return null;
    }
   
    UniqueId bbgUniqueId = BloombergSecurityProvider.createUniqueId(bbgUniqueIdString);
    Currency currency = Currency.of(currencyCode.toUpperCase());
    GICSCode gicsCode = gicsCodeString != null ? GICSCode.of(gicsCodeString) : null;
   
    EquitySecurity security = new EquitySecurity(exchangeData.getDescription(), exchangeData.getMic(), name, currency);
    security.setUniqueId(bbgUniqueId);
    security.setName(name);
    security.setShortName(ticker);
    if (gicsCode != null) {
      security.setGicsCode(gicsCode);
View Full Code Here

TOP

Related Classes of com.opengamma.financial.timeseries.exchange.Exchange

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.