Examples of DDF_Exchange


Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

    /* price currency */
    currencyCode = "USD";

    /* market originating exchange identifier */
    final DDF_Exchange exchange = DDF_Exchange.fromCode(xmlByteDecode(attr, EXCHANGE_DDF, XML_PASS));

    String eCode = new String(new byte[] {
        exchange.code
    });

View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

   
    /* price currency */
    builder.setCurrencyCode("USD");
   
    /* market originating exchange identifier */
    final DDF_Exchange exchange = DDF_Exchange.fromCode(
        xmlByteDecode(tag, EXCHANGE_DDF, XML_PASS));
    String eCode = new String(new byte[] {exchange.code});
    if(eCode == null || eCode.isEmpty()) {
      eCode = Exchanges.NULL_CODE;
    }
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

     
      /* price currency */
      builder.setCurrencyCode("USD");
     
      /* market originating exchange identifier */
      final DDF_Exchange exchange = DDF_Exchange.fromCode(
          xmlByteDecode(ats, EXCHANGE_DDF, XML_PASS));
      String eCode = new String(new byte[] {exchange.code});
      if(eCode == null || eCode.isEmpty()) {
        eCode = Exchanges.NULL_CODE;
      }
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

  @Override
  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);
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

  @Override
  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

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

    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);
    setExchange(exch);

    final byte modeCode = xmlByteDecode(tag, QUOTE_MODE, XML_PASS);
    final DDF_QuoteMode mode = DDF_QuoteMode.fromCode(modeCode);
    setMode(mode);
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

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

    final DDF_QuoteMode mode = getMode();
    if (mode.isKnown()) {
      xmlByteEncode(mode.code, tag, QUOTE_MODE);
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

   
    /* price currency */
    builder.setCurrencyCode("USD");
   
    /* market originating exchange identifier */
    final DDF_Exchange exchange = DDF_Exchange.fromCode(
        xmlByteDecode(tag, EXCHANGE_DDF, XML_PASS));
    String eCode = new String(new byte[] {exchange.code});
    if(eCode == null || eCode.isEmpty()) {
      eCode = Exchanges.NULL_CODE;
    }
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

     
      /* price currency */
      builder.setCurrencyCode("USD");
     
      /* market originating exchange identifier */
      final DDF_Exchange exchange = DDF_Exchange.fromCode(
          xmlByteDecode(ats, EXCHANGE_DDF, XML_PASS));
      String eCode = new String(new byte[] {exchange.code});
      if(eCode == null || eCode.isEmpty()) {
        eCode = Exchanges.NULL_CODE;
      }
View Full Code Here

Examples of com.barchart.feed.ddf.symbol.enums.DDF_Exchange

   
    final Time expire = xmlTimeDecode(tag, SYMBOL_EXPIRE, XML_PASS);

    // month code for exp of futures contract
    final DDF_TimeZone zone = DDF_TimeZone.fromCode(zoneCode);
    final DDF_Exchange exchange = DDF_Exchange.fromCode(exchCode);
    final DDF_Fraction frac = DDF_Fraction.fromBaseCode(baseCode);
    final long priceStepMantissa = xmlDecimalDecode(frac, tag,
        PRICE_TICK_INCREMENT, XML_STOP);
    final String pricePointString = xmlStringDecode(tag, PRICE_POINT_VALUE,
        XML_PASS);
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.