Examples of DDF_Fraction


Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    decodeDay(buffer);
  }

  @Override
  protected final void encodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    HelperDDF.decimalEncode(priceOpen, frac, buffer, COMMA); // <open>,
    HelperDDF.decimalEncode(priceHigh, frac, buffer, COMMA); // <high>,
    HelperDDF.decimalEncode(priceLow, frac, buffer, COMMA); // <low>,
    HelperDDF.decimalEncode(priceLast, frac, buffer, COMMA); // <last>,
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    HelperDDF.longEncode(sizeVolume, buffer, NUL); // <cur volume>,
  }

  @Override
  protected final void decodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    priceOpen = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceHigh = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceLow = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceLast = HelperDDF.decimalDecode(frac, buffer, COMMA); //
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    symbolArray = xmlDecSymbol(tag, SYMBOL, XML_STOP);

    updateSpread();

    final byte baseCode = xmlByteDecode(tag, FRACTION_DDF, XML_STOP);
    final DDF_Fraction frac = DDF_Fraction.fromBaseCode(baseCode);
    setFraction(frac);

    priceStep = xmlDecimalDecode(frac, tag, PRICE_TICK_INCREMENT, XML_STOP);

    priceTrade = xmlDecimalDecode(frac, tag, PRICE_LAST, XML_STOP);
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    xmlCheckTagName(tag, TAG);

    xmlAsciiEncode(getSymbolFull(), tag, SYMBOL);

    final DDF_Fraction frac = getFraction();
    xmlByteEncode(frac.baseCode, tag, FRACTION_DDF);

    xmlDecimalEncode(priceStep, frac, tag, PRICE_TICK_INCREMENT);

    xmlDecimalEncode(priceTrade, frac, tag, PRICE_LAST);
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    symbolName = xmlAsciiDecode(tag, SYMBOL_NAME, XML_PASS);

    exchangeExtra = xmlAsciiDecode(tag, EXCHANGE_EXTRA, XML_PASS);

    final byte baseCode = xmlByteDecode(tag, FRACTION_DDF, XML_STOP);
    final DDF_Fraction frac = DDF_Fraction.fromBaseCode(baseCode);
    setFraction(frac);

    // FIXME, MDEX ddfexchange code missing
    final byte exchCode = xmlByteDecode(tag, EXCHANGE_DDF, XML_PASS);
    final DDF_Exchange exch = DDF_Exchange.fromCode(exchCode);
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    xmlAsciiEncode(symbolName, tag, SYMBOL_NAME);

    xmlAsciiEncode(exchangeExtra, tag, EXCHANGE_EXTRA);

    final DDF_Fraction frac = getFraction();
    xmlByteEncode(frac.baseCode, tag, FRACTION_DDF);

    final DDF_Exchange exch = getExchange();
    xmlByteEncode(exch.code, tag, EXCHANGE_DDF);
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    decodeDay(buffer);
  }

  @Override
  protected final void encodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    HelperDDF.decimalEncode(priceOpen, frac, buffer, COMMA); // <open>,
    HelperDDF.decimalEncode(priceHigh, frac, buffer, COMMA); // <high>,
    HelperDDF.decimalEncode(priceLow, frac, buffer, COMMA); // <low>,
    HelperDDF.decimalEncode(priceLast, frac, buffer, NUL); // <last>,
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    HelperDDF.decimalEncode(priceLast, frac, buffer, NUL); // <last>,
  }

  @Override
  protected final void decodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    priceOpen = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceHigh = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceLow = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    priceLast = HelperDDF.decimalDecode(frac, buffer, NUL); //
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

   *
   * ||<day><session><etx>||<time stamp>
   */
  @Override
  protected final void encodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    HelperDDF.decimalEncode(priceBid, frac, buffer, COMMA); // <bid price>,
    HelperDDF.longEncode(sizeBid, buffer, COMMA); // <bid size>,
    HelperDDF.decimalEncode(priceAsk, frac, buffer, COMMA); // <ask price>,
    HelperDDF.longEncode(sizeAsk, buffer, COMMA); // <ask size>,
View Full Code Here

Examples of com.barchart.feed.ddf.util.enums.DDF_Fraction

    HelperDDF.longEncode(sizeAsk, buffer, COMMA); // <ask size>,
  }

  @Override
  protected final void decodeBody(final ByteBuffer buffer) {
    final DDF_Fraction frac = getFraction();
    //
    priceBid = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    sizeBid = HelperDDF.longDecode(buffer, COMMA); //
    priceAsk = HelperDDF.decimalDecode(frac, buffer, COMMA); //
    sizeAsk = HelperDDF.longDecode(buffer, COMMA); //
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.