Package com.barchart.feed.base.values.api

Examples of com.barchart.feed.base.values.api.PriceValue.sub()


    final PriceValue priceAsk = priceTop(Book.Side.ASK);
    if (priceAsk.isNull()) {
      return ValueConst.NULL_PRICE;
    }

    return priceAsk.sub(priceBid);

  }

  @Override
  public List<Entry> entryList(final Book.Side side) {
View Full Code Here


    final PriceValue priceAsk = priceTop(Book.Side.ASK);
    if (priceAsk.isNull()) {
      return ValueConst.NULL_PRICE;
    }

    return priceAsk.sub(priceBid);

  }

  @Override
  public List<Entry> entryList(final Book.Side side) {
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.