Examples of DDF_Session


Examples of com.barchart.feed.ddf.message.enums.DDF_Session

    final DDF_MessageType tradeType = message.getMessageType();

    final TimeValue time = message.getTime();
    final TimeValue date = message.getTradeDay().tradeDate();
    final DDF_Session ddfSession = message.getSession();

    PriceValue price = message.getPrice();
    SizeValue size = message.getSize();

    if (isClear(price) || isEmpty(price)) {
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

    xmlByteEncode(getTradeDay().code, tag, TRADE_DAY);

    //

    final DDF_Session session = getSession();

    //

    xmlByteEncode(session.code, tag, SESSION);
    xmlDecimalEncode(priceLast, frac, tag, PRICE_LAST);
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

    //

    switch (param) {

    case TRADE_LAST_PRICE:
      final DDF_Session ddfSession = message.getSession();
      market.setTrade(ddfSession.type, ddfSession.session,
          ddfSession.sequencing, price, size, time, date);
      return null;

    case ASK_LAST_PRICE:
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

   * via xml quote >> xml session
   */
  protected Void visit(final DDF_MarketSnapshot message,
      final MarketDo market, final DDF_Indicator indicator) {

    final DDF_Session session = message.getSession();

    final MarketBarType type = barTypeFrom(indicator, session);

    final MarketDoBar bar = market.loadBar(type.field);

View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

      // TODO review contract on how to clean partial values
      if (isClear(size) || isEmpty(size)) {
        size = ValueConst.NULL_SIZE;
      }

      final DDF_Session ddfSession = message.getSession();
      final TimeValue time = message.getTime();
      final TimeValue date = message.getTradeDay().tradeDate();

//      log.debug("DDF Session: code="
//          + new String(new byte[] { ddfSession.code }));
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

      price = message.getAsPrice();
      size = ValueConst.NULL_SIZE;
      break;
    }

    final DDF_Session ddfSession = message.getSession();
   
    //

    final MarketBookTop top = market.get(MarketField.BOOK_TOP);
    final MarketDoBar barCurrent = market.loadBar(CURRENT.field);
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

   * via xml quote >> xml session
   */
  protected Void visit(final DDF_MarketSnapshot message,
      final MarketDo market, final DDF_Indicator indicator) {

    final DDF_Session session = message.getSession();

    final MarketBarType type = barTypeFrom(indicator, session);

    final MarketDoBar bar = market.loadBar(type.field);

View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

      // TODO review contract on how to clean partial values
      if (isClear(size) || isEmpty(size)) {
        size = ValueConst.NULL_SIZE;
      }

      final DDF_Session ddfSession = message.getSession();
      final TimeValue time = message.getTime();
      final TimeValue date = message.getTradeDay().tradeDate();

      market.setTrade(ddfSession.type, ddfSession.session,
          ddfSession.sequencing, price, size, time, date);
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

      price = message.getAsPrice();
      size = ValueConst.NULL_SIZE;
      break;
    }

    final DDF_Session ddfSession = message.getSession();
   
    //

    final MarketBookTop top = market.get(MarketField.BOOK_TOP);
    final MarketDoBar barCurrent = market.loadBar(CURRENT.field);
View Full Code Here

Examples of com.barchart.feed.ddf.message.enums.DDF_Session

   * via xml quote >> xml session
   */
  protected Void visit(final DDF_MarketSnapshot message,
      final MarketDo market, final DDF_Indicator indicator) {

    final DDF_Session session = message.getSession();

    final MarketBarType type = barTypeFrom(indicator, session);

    final MarketDoBar bar = market.loadBar(type.field);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.