Package com.quantcomponents.core.model.beans

Examples of com.quantcomponents.core.model.beans.ContractDescBean


    bean.setIdentifier(rs.getString(17));
    bean.setBrokerID(rs.getString(18));
    String descLongName = rs.getString(19);
    String descTzId = rs.getString(20);
    if (descLongName != null || descTzId != null) {
      ContractDescBean desc = new ContractDescBean();
      desc.setLongName(descLongName);
      if (descTzId != null) {
        desc.setTimeZone(TimeZone.getTimeZone(descTzId));
      }
      bean.setContractDescription(desc);
    }
    header.contract = bean;
     
View Full Code Here


      ContractBean contract = new ContractBean();
      contract.setSymbol(ticker);
      contract.setExchange(extractExchange(security));
      contract.setSecurityType(decodeSecurityType(extractSecurityType(security)));
      contract.setCurrency(stockCurrency);
      ContractDescBean description = new ContractDescBean();
      description.setLongName(extractDescription(security));
      description.setTimeZone(YAHOO_FINANCE_TIMEZONE);
      contract.setContractDescription(description);
      contract.setBrokerID(YAHOO_BROKER_ID);
      contractList.add(contract);
    }
    return contractList;
View Full Code Here

TOP

Related Classes of com.quantcomponents.core.model.beans.ContractDescBean

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.