Package com.barchart.feed.api.model.data

Examples of com.barchart.feed.api.model.data.SessionData


   
    if(!current.close().isNull()) {
      return new LastPriceImpl(Source.LAST_TRADE, current.close());
    }
   
    final SessionData previous = sessionSet().session(Type.DEFAULT_PREVIOUS);
   
    if (!previous.isSettled().isNull() && previous.isSettled().value()) {
      return new LastPriceImpl(Source.PREV_SETTLE, previous.settle());
    }
   
    if(!previous.close().isNull()) {
      return new LastPriceImpl(Source.PREV_CLOSE, previous.close());
    }
   
    return LastPrice.NULL;
  }
View Full Code Here


   
    if(!current.close().isNull()) {
      return new LastPriceImpl(Source.LAST_TRADE, current.close());
    }
   
    final SessionData previous = sessionSet().session(Type.DEFAULT_PREVIOUS);
   
    if (!previous.isSettled().isNull() && previous.isSettled().value()) {
      return new LastPriceImpl(Source.PREV_SETTLE, previous.settle());
    }
   
    if(!previous.close().isNull()) {
      return new LastPriceImpl(Source.PREV_CLOSE, previous.close());
    }
   
    return LastPrice.NULL;
  }
View Full Code Here

TOP

Related Classes of com.barchart.feed.api.model.data.SessionData

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.