Package intrade.entities

Examples of intrade.entities.ContractTrade


    ArrayList<ContractTrade> prices = new ArrayList<ContractTrade>();
    for (int i = 0; i < entries.length; i++) {
      if (entries[i].startsWith("Date"))
        continue;

      ContractTrade ct = parseContractTradeCSV(entries[i], contractid);
      prices.add(ct);
      print(ct.toString());

      if (ct.getDate() > lastUTC)
        lastUTC = ct.getDate();

    }

    PersistenceManager pm = PMF.get().getPersistenceManager();
    pm.makePersistentAll(prices);
View Full Code Here


    Long timeStamp = Long.parseLong(entries[0].trim());
    Double price = Double.parseDouble(entries[2].trim());
    Long volume = Long.parseLong(entries[3].trim());

    ContractTrade ct = new ContractTrade(contract_id, timeStamp, price, volume);

    return ct;
  }
View Full Code Here

TOP

Related Classes of intrade.entities.ContractTrade

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.