Examples of DDF_Fraction


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

    if(eCode == null || eCode.isEmpty()) {
      eCode = Exchanges.NULL_CODE;
    }
    builder.setExchangeCode(eCode);
   
    final DDF_Fraction frac = DDF_Fraction.fromBaseCode(
        xmlByteDecode(ats, BASE_CODE_DDF, XML_STOP));
   
    /* price step / increment size / tick size */
    try {
      final long priceStepMantissa = xmlDecimalDecode(frac, ats,
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

      if (eCode == null || eCode.isEmpty()) {
        eCode = Exchanges.NULL_CODE;
      }
      builder.setExchangeCode(eCode);

      final DDF_Fraction frac =
          DDF_Fraction.fromBaseCode(xmlByteDecode(ats, BASE_CODE_DDF,
              XML_STOP));

      /* price step / increment size / tick size */
      try {
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

    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);

    //

    countBid = xmlIntegerDecode(tag, BID_COUNT, 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);

    xmlIntegerEncode(countBid, tag, BID_COUNT);

    xmlIntegerEncode(countAsk, tag, ASK_COUNT);
View Full Code Here

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

  public final void decodeXML(final Element tag) {

    xmlCheckTagName(tag, TAG);

    final DDF_Exchange exch = getExchange();
    final DDF_Fraction frac = getFraction();

    //

    final String indCode = xmlStringDecode(tag, SESSION_INDICATOR, XML_STOP);
    setIndicator(DDF_Indicator.fromCode(indCode));
View Full Code Here

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

  public final void encodeXML(final Element tag) {

    xmlCheckTagName(tag, TAG);

    final DDF_Exchange exch = getExchange();
    final DDF_Fraction frac = getFraction();

    //

    xmlStringEncode(getIndicator().code, tag, SESSION_INDICATOR);
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.