Package com.barchart.util.value.api

Examples of com.barchart.util.value.api.Fraction


    if (instrument.isNull()) {
      return false;
    }

    final Fraction fraction = instrument.displayFraction();

    if (fraction == null || fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    return true;
View Full Code Here


    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();
   
    if(fraction == null || fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    return true;
View Full Code Here

    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();
   
    if(fraction == null || fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    return true;
View Full Code Here

    if (priceStep.isNull() || priceStep.isZero()) {
      return false;
    }

    final Fraction fraction = instrument.displayFraction();

    if(fraction == null || fraction.isNull()) {
      return false;
    }

    return true;
View Full Code Here

    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();

    if (fraction == null || fraction == ValueConst.NULL_FRACTION) {
      log.error("fraction.isNull()");
      return false;
    }
View Full Code Here

    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();
   
    if(fraction == null || fraction == ValueConst.NULL_FRACTION) {
      log.error("fraction.isNull()");
      return false;
    }
View Full Code Here

   
    builder.setMinimumPriceIncrement(Decimal.newBuilder()
        .setMantissa(tickSize.mantissa())
        .setExponent(tickSize.exponent()));
   
    final Fraction frac = inst.displayFraction();
   
    builder.setDisplayBase((int) frac.base());
    builder.setDisplayExponent(frac.exponent());
   
    builder.setExchangeCode(inst.exchangeCode());
   
    return InstrumentFactory.instrumentState(builder.buildPartial());
   
View Full Code Here

    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();
   
    if(fraction == null || fraction == ValueConst.NULL_FRACTION) {
      log.error("fraction.isNull()");
      return false;
    }
View Full Code Here

    if (priceStep.isZero()) {
      log.error("priceStep.isZero()");
      return false;
    }

    final Fraction fraction = instrument.displayFraction();
   
    if(fraction == null || fraction == ValueConst.NULL_FRACTION) {
      log.error("fraction.isNull()");
      return false;
    }
View Full Code Here

//    if (priceStep.isZero()) {
//      log.error("priceStep.isZero() for {}", instrument.symbol());
//      return false;
//    }

    final Fraction fraction = instrument.displayFraction();

    if (fraction == null || fraction == ValueConst.NULL_FRACTION) {
      log.error("fraction.isNull()");
      return false;
    }
View Full Code Here

TOP

Related Classes of com.barchart.util.value.api.Fraction

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.