Package com.bloomberglp.blpapi

Examples of com.bloomberglp.blpapi.Element


      LocalDateDoubleTimeSeriesBuilder bld = result.get(identifiers);
      if (bld == null) {
        bld = ImmutableLocalDateDoubleTimeSeries.builder();
        result.put(identifiers, bld);
      }
      Element fieldDataArray = securityElem.getElement(FIELD_DATA);

      int numValues = fieldDataArray.numValues();
      for (int i = 0; i < numValues; i++) {
        Element fieldData = fieldDataArray.getValueAsElement(i);
        Datetime date = fieldData.getElementAsDate("date");
        LocalDate ldate = LocalDate.of(date.year(), date.month(), date.dayOfMonth());
        double lastPrice = fieldData.getElementAsFloat64(field);
        bld.put(ldate, lastPrice);
      }
    }
View Full Code Here


      //return date.calendar().getTime();
    } else if (datatype == Datatype.SEQUENCE) {
      final int numValues = valueElement.numValues();
      final List<FudgeMsg> valueAsList = new ArrayList<FudgeMsg>(numValues);
      for (int i = 0; i < numValues; i++) {
        final Element sequenceElem = valueElement.getValueAsElement(i);
        final FudgeMsg sequenceElemAsMsg = parseElement(sequenceElem);
        valueAsList.add(sequenceElemAsMsg);
      }
      return valueAsList;
    }
View Full Code Here

            return;
          }
        }
       
        CorrelationID bbgCID = msg.correlationID();
        Element element = msg.asElement();
        getLogger().debug("got msg with cid={} msg.asElement={}", bbgCID, msg.asElement());
        if (bbgCID != null) {
          realCID = _correlationIDMap.get(bbgCID);
          if (realCID != null) {
            BlockingQueue<Element> messages = _correlationIDElementMap.get(realCID);
View Full Code Here

TOP

Related Classes of com.bloomberglp.blpapi.Element

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.