Package com.barchart.feed.api.model.meta

Examples of com.barchart.feed.api.model.meta.Instrument


  // ########################
 
  @Override
  public void make(final Message message) {

    final Instrument instrument = message.getInstrument();

    if (!isValid(instrument)) {
      return;
    }
View Full Code Here


    listenerList.remove(listener);
  }

  protected final void notifyRegListeners(final MarketDo market) {

    final Instrument inst = market.instrument();

    final Set<MarketEvent> events = market.regEvents();

    for (final MarketRegListener listener : listenerList) {
      try {
View Full Code Here

      omniTaker);

  @Override
  public final void make(final Message message) {

    final Instrument instrument = message.getInstrument();

    if (!isValid(instrument)) {
      return;
    }
View Full Code Here

    final CharSequence queryPage = query.type.queryPage;

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

    final Instrument instrument = query.instrument;
    final CharSequence symbol = formatHistorical(instrument.symbol())// TODO Need to modify symbol

    final DateTimeZone timeZone = DateTimeZone.forOffsetMillis(
        (int)instrument.timeZoneOffset());
    final CharSequence start = requestTime(query.timeStart, timeZone);
    final CharSequence end = requestTime(query.timeEnd, timeZone);

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

  // ########################
 
  @Override
  public void make(final Message message) {

    final Instrument instrument = message.getInstrument();

    if (!isValid(instrument)) {
      return;
    }
View Full Code Here

  // ########################

  @Override
  public void make(final Message message) {

    final Instrument instrument = message.getInstrument();

    if (!isValid(instrument)) {
      return;
    }
View Full Code Here

      final Set<String> newInterests = new HashSet<String>();

      for (final Entry<String, Instrument> e : instMap
          .entrySet()) {

        final Instrument i = e.getValue();

        if (!i.isNull()) {

          exInsts.remove(i);
          incInsts.add(i);
         
          newInterests.add(formatForJERQ(i.symbol()));
         
        } else {
          /*
           * For all failed lookups, store symbol and attempt to match
           * in the hasMatch method.
View Full Code Here

      final Set<String> oldInterests = new HashSet<String>();

      for (final Entry<String, Instrument> e : instMap
          .entrySet()) {

        final Instrument i = e.getValue();

        if (!i.isNull()) {

          incInsts.remove(i);
          exInsts.add(i);

          oldInterests.add(i.symbol());
         
        } else {
          /*
           * For all failed lookups, store symbol and attempt to match
           * in the hasMatch method.
View Full Code Here

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

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

    final 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

    final CharSequence queryPage = query.type.queryPage;

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

    final Instrument instrument = query.instrument;
    final CharSequence symbol = Symbology.formatHistoricalSymbol(instrument.symbol())

    final DateTimeZone timeZone = DateTimeZone.forOffsetMillis(
        (int)instrument.timeZoneOffset());
    final CharSequence start = requestTime(query.timeStart, timeZone);
    final CharSequence end = requestTime(query.timeEnd, timeZone);

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

TOP

Related Classes of com.barchart.feed.api.model.meta.Instrument

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.