Package com.quantcomponents.core.model

Examples of com.quantcomponents.core.model.TimePeriod


  @Override
  public boolean performFinish() {
    boolean realtimeUpdate = page3.isRealtimeUpdate();
    final StockDatabasePresentationWrapper stockDatabase = marketDataManager.createStockDatabase(page2.getSelectedContract(), page3.getDataType(), page3.getBarSize(), page3.isAfterHoursIncluded(), page3.getTimeZone());
    try {
      TimePeriod period = new TimePeriod(page3.getPeriodUnit(), page3.getPeriodAmount());
      endDateTime = null;
      if (realtimeUpdate) {
        endDateTime = new Date();
      } else {
        endDateTime = page3.getEndDate();
View Full Code Here


      } else if (remainingPeriod < minHistDataPeriodMs) {
        currentRequestPeriod = minHistDataPeriodMs;
      } else {
        currentRequestPeriod = remainingPeriod;
      }
      TimePeriod requestPeriod = TimePeriod.findApproxPeriod(currentRequestPeriod);
      List<IOHLCPoint> partialResult = null;

      logger.log(Level.INFO, "Request #" + requestNo + ". Data until: " + nextEndDateTime); // TODO: remove
      try {
       
View Full Code Here

TOP

Related Classes of com.quantcomponents.core.model.TimePeriod

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.