Examples of DDF_Instrument


Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

   * @param instrument
   * @param events
   */
  public Subscription(final MarketInstrument instrument,
      final Set<MarketEvent> events) {
    final DDF_Instrument instrumentDDF = (DDF_Instrument) instrument;
    this.instrument =
        instrumentDDF.get(DDF_InstrumentField.DDF_SYMBOL_REALTIME)
            .toString();
    this.interests = DDF_FeedInterest.fromEvents(events);
  }
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    }

    // hack to work around for lack of "exchange_ddf" attribute

    final DDF_Instrument instrument = getInstrument();
    setExchange(instrument.get(DDF_InstrumentField.DDF_EXCHANGE));

    final long millisUTC = xmlTimeDecode(getExchange().kind.time.zone, tag,
        TIME_LAST, XML_PASS);
    setDecodeDefaults(millisUTC);
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    final List<DDF_Instrument> listInstrument = new ArrayList<DDF_Instrument>(
        listDocument.size());

    for (final Document doc : listDocument) {

      final DDF_Instrument instrument = CodecHelper
          .<TextValue> instrumentDecode(doc);

      listInstrument.add(instrument);

    }
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    final String stringURL = urlQuery(settings, query);
    log.debug("stringURL : \n\t {}", stringURL);

    final Builder builder = Builder.from(query.type);

    final DDF_Instrument instrument = query.instrument;

    final E entryReference = (E) builder.newEntry(0, null, instrument);

    final Result<E> result = new Result<E>(query, entryReference, listener);
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    final CharSequence queryPage = query.type.queryPage;

    final CharSequence username = settings.getAuthUser();
    final CharSequence password = settings.getAuthPass();

    final DDF_Instrument instrument = query.instrument;
    final CharSequence symbol = instrument
        .get(DDF_InstrumentField.DDF_SYMBOL_HISTORICAL);

    final DateTimeZone timeZone = instrument
        .get(DDF_InstrumentField.DDF_EXCHANGE).kind.time.zone;
    final CharSequence start = requestTime(query.timeStart, timeZone);
    final CharSequence end = requestTime(query.timeEnd, timeZone);

    final CharSequence maxRecords = query.maxRecords <= 0 ? "" : ""
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    final List<DDF_Instrument> list = new ArrayList<DDF_Instrument>(
        symbolList.size());

    for (final String symbol : symbolList) {

      final DDF_Instrument instrument = lookup(ValueBuilder
          .newText(symbol));

      if (instrument.isNull()) {
        continue;
      }

      list.add(instrument);
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

      return DDF_InstrumentProvider.NULL_INSTRUMENT;
    }

    final TextValue lookup = symbol.toUpperCase();

    DDF_Instrument instrument = ddfInstrumentMap.get(lookup);

    if (instrument == null) {
     
      try {
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    if (CodecHelper.isEmpty(symbol)) {
      return DDF_InstrumentProvider.NULL_INSTRUMENT;
    }

    DDF_Instrument instrument = load(symbol);

    if (instrument == null) {

      try {
View Full Code Here

Examples of com.barchart.feed.ddf.instrument.api.DDF_Instrument

    for (final String symbol : symbolList) {

      final TextValue id = ValueBuilder.newText(symbol);

      final DDF_Instrument instrument = load(id);

      if (instrument == null) {
        fetchList.add(symbol);
      } else {
        oldList.add(instrument);
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.