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

Examples of com.barchart.feed.api.model.meta.id.InstrumentID


    return Collections.<InstrumentID> emptyList();
  }
 
  @Override
  public InstrumentID id() {
    return new InstrumentID(marketGUID());
  }
View Full Code Here


      return Collections.emptyList();
    }
   
    final List<InstrumentID> legs = new ArrayList<InstrumentID>();
    for(final Long l : def.getComponentIdList()) {
      legs.add(new InstrumentID(String.valueOf(l)));
    }
   
    return legs;
  }
View Full Code Here

            final Map<InstrumentID, InstrumentState> lookup = remoteIDLookup(query);

            /* Store instruments returned from lookup */
            for(final Entry<InstrumentID, InstrumentState> e : lookup.entrySet()) {
             
              final InstrumentID id = e.getKey();
              final InstrumentState inst = e.getValue();
             
              if(inst == null || inst.isNull()) {
                continue;
              }
View Full Code Here

  }

  public DDF_Instrument(final String symbol_) {

    super(new InstrumentID(symbol_));

    symbol = symbol_;

    loadState = LoadState.EMPTY;
View Full Code Here

      }

      /* Set underlier ID */
      final String under = xmlStringDecode(attr, UNDERLIER_ID, XML_PASS);
      if(under != null && under.length() > 0) {
        underlier = new InstrumentID(under);
      }

    }

    /* price currency */
 
View Full Code Here

    }

    /* market identifier; must be globally unique; */
    try {
      final Long id = Long.parseLong(xmlStringDecode(attr, ID, XML_STOP));
      return new InstrumentID(String.valueOf(id));
    } catch (final Exception e) {
      /* Ensure no id collision by making negative */
      log.warn("Instrumet with non long ID = {}", xmlStringDecode(attr, ID, XML_STOP));
      final Long id = Long.valueOf(Math.abs(xmlStringDecode(attr, ID, XML_STOP).hashCode()) * -1);
      return new InstrumentID(String.valueOf(id));
    }

  }
View Full Code Here

            final Map<InstrumentID, InstrumentState> lookup = remoteIDLookup(query);

            /* Store instruments returned from lookup */
            for(final Entry<InstrumentID, InstrumentState> e : lookup.entrySet()) {
             
              final InstrumentID id = e.getKey();
              final InstrumentState inst = e.getValue();
             
              if(inst == null || inst.isNull()) {
                continue;
              }
View Full Code Here

           
            vendors = new ArrayList<Attributes>();
          }
         
          atts = new AttributesImpl(ats);
          lookup = new InstrumentID(xmlStringDecode(ats, XmlTagExtras.ID, XML_STOP));
         
        } else if("ticker".equals(qName)) {
          vendors.add(new AttributesImpl(ats));
        }
View Full Code Here

TOP

Related Classes of com.barchart.feed.api.model.meta.id.InstrumentID

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.