Examples of MarketBarType


Examples of com.barchart.feed.base.bar.enums.MarketBarType

  @Override
  public void setSnapshot(final TimeValue tradeDate, final PriceValue open, final PriceValue high,
      final PriceValue low, final PriceValue close, final PriceValue settle, final PriceValue previousSettle,
      final SizeValue volume, final SizeValue interest, final BooleanValue isSettled, final TimeValue barTime) {

    final MarketBarType type = ensureBar(tradeDate);

    if (type.isNull())
      return;

    final MarketDoBar bar = loadBar(type.field);

    applyBar(bar, MarketBarField.OPEN, open);
View Full Code Here

Examples of com.barchart.feed.base.bar.enums.MarketBarType

  private final void applyTradeToBar(final MarketTradeSession session,
      final MarketTradeSequencing sequencing, final PriceValue price,
      final SizeValue size, final TimeValue time, final TimeValue date) {

    MarketBarType barType = ensureBar(date);
    if (session == EXTENDED && barType == CURRENT)
      barType = CURRENT_EXT;

    final MarketDoBar bar = loadBar(barType.field);
View Full Code Here

Examples of com.barchart.feed.base.bar.enums.MarketBarType

  @SuppressWarnings("deprecation")
  private final void applyTradeToBar(final MarketTradeSession session,
      final MarketTradeSequencing sequencing, final PriceValue price,
      final SizeValue size, final TimeValue time, final TimeValue date) {

    final MarketBarType barType = session == EXTENDED ? CURRENT_EXT
        : CURRENT;
    final MarketDoBar bar = loadBar(barType.field);

    eventAdd(barType.event);
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.