Package com.opengamma.livedata

Examples of com.opengamma.livedata.LiveDataListener


    subs.add(new LiveDataSpecification("OpenGamma", ExternalId.of("SURF", "ASIRSEUR49Y30A03L")));
    subs.add(new LiveDataSpecification("OpenGamma", ExternalId.of("SURF", "FV1DRUSDBRL06M")));
    subs.add(new LiveDataSpecification("OpenGamma", ExternalId.of("ICAP", "SAUD_9Y")));
    subs.add(new LiveDataSpecification("OpenGamma", ExternalId.of("ICAP", "GBP_5Y")));
    subs.add(new LiveDataSpecification("OpenGamma", ExternalId.of("ICAP", "GBPUSD7M")));
    LiveDataListener ldl = new LiveDataListener() {
      @Override
      public void subscriptionResultReceived(LiveDataSubscriptionResponse subscriptionResult) {
        s_logger.warn("Sub result {}", subscriptionResult);
      }
View Full Code Here


  }

  public void addSubscription(ExternalId id, String normalizationSet) {
    LiveDataSpecification ldSpec = new LiveDataSpecification(normalizationSet, id);
    s_logger.warn("Subscribing to {}", ldSpec);
    getLiveDataClient().subscribe(getLiveDataUser(), ldSpec, new LiveDataListener() {

      @Override
      public void subscriptionResultReceived(LiveDataSubscriptionResponse subscriptionResult) {
        s_logger.warn("Subscription result of {}", subscriptionResult);
      }
View Full Code Here

TOP

Related Classes of com.opengamma.livedata.LiveDataListener

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.