Package com.barchart.feed.base.trade.api

Examples of com.barchart.feed.base.trade.api.MarketDoTrade


//        + sequencing + "; price=" + price);
    // assert isValidPrice(price);

    // ### trade

    final MarketDoTrade trade = loadTrade();

    // XXX disabled to match ddf
    // if (trade.get(TRADE_TIME).compareTo(time) > 0) {
    // log.error("ignoring past trade");
    // return;
    // }

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here


    assert time != null;
    assert date != null;

    // ### trade

    final MarketDoTrade trade = loadTrade();

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

    assert date != null;
   
    // Update trade
    if (sequencing != MarketTradeSequencing.UNSEQUENCED_VOLUME) {

      final MarketDoTrade trade = loadTrade();

      trade.set(TYPE, type);
      trade.set(SESSION, session);
      trade.set(SEQUENCING, sequencing);
      trade.set(PRICE, price);
      trade.set(SIZE, size);
      trade.set(TRADE_TIME, time);
      trade.set(MarketTradeField.TRADE_DATE, date);

      setChange(Component.TRADE);
      eventAdd(NEW_TRADE);

      set(TRADE, trade);
View Full Code Here

//        + sequencing + "; price=" + price);
    // assert isValidPrice(price);

    // ### trade

    final MarketDoTrade trade = loadTrade();

    // XXX disabled to match ddf
    // if (trade.get(TRADE_TIME).compareTo(time) > 0) {
    // log.error("ignoring past trade");
    // return;
    // }

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

//        + sequencing + "; price=" + price);
    // assert isValidPrice(price);

    // ### trade

    final MarketDoTrade trade = loadTrade();

    // XXX disabled to match ddf
    // if (trade.get(TRADE_TIME).compareTo(time) > 0) {
    // log.error("ignoring past trade");
    // return;
    // }

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

//        + sequencing + "; price=" + price);
    // assert isValidPrice(price);

    // ### trade

    final MarketDoTrade trade = loadTrade();

    // XXX disabled to match ddf
    // if (trade.get(TRADE_TIME).compareTo(time) > 0) {
    // log.error("ignoring past trade");
    // return;
    // }

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

    assert time != null;
    assert date != null;

    // ### trade

    final MarketDoTrade trade = loadTrade();

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

    assert date != null;

    // Update trade
    if (sequencing != MarketTradeSequencing.UNSEQUENCED_VOLUME) {

      final MarketDoTrade trade = loadTrade();

      trade.set(TYPE, type);
      trade.set(SESSION, session);
      trade.set(SEQUENCING, sequencing);
      trade.set(PRICE, price);
      trade.set(SIZE, size);
      trade.set(TRADE_TIME, time);
      trade.set(MarketTradeField.TRADE_DATE, date);

      setChange(Component.TRADE);
      eventAdd(NEW_TRADE);

      set(TRADE, trade);
View Full Code Here

    assert time != null;
    assert date != null;

    // ### trade

    final MarketDoTrade trade = loadTrade();

    trade.set(TYPE, type);
    trade.set(SESSION, session);
    trade.set(SEQUENCING, sequencing);
    trade.set(PRICE, price);
    trade.set(SIZE, size);
    trade.set(TRADE_TIME, time);
    trade.set(MarketTradeField.TRADE_DATE, date);

    eventAdd(NEW_TRADE);

    // ### bar
View Full Code Here

TOP

Related Classes of com.barchart.feed.base.trade.api.MarketDoTrade

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.