Jump to content
Sign in to follow this  
josephtzadic

Lighstreamer getting started issue.

Recommended Posts

Hi,

I am trying to get the lighstreamer java se get going but facing some issue. please let me know if anything is wrong with the below code. I am not getting any updates at all after subscription.

 

        String[] items = {
        "PRICE.401484392","GBP/USD"
    };
        String[] fields = {
        "MarketId", "TickDate", "Bid", "Offer", "Price", "High", "Low", "Change", "Direction", "Delta", "ImpliedVolatility", "AuditId", "StatusSummary"
    };
        
        LightstreamerClient client = new LightstreamerClient(serverAddress, "STREAMINGALL");
        
        client.connectionDetails.setUser("XXXXXXXX");
        client.connectionDetails.setPassword("XXXXXXXXXXXXXXXXXXXXXXXXX");
        client.connectionDetails.setAdapterSet("STREAMINGALL");

        ClientListener clientListener = new SystemOutClientListener();
        client.addListener(clientListener);

        Subscription sub = new Subscription("MERGE", items, fields);
        sub.setRequestedSnapshot("yes");
        sub.setDataAdapter("PRICES");

        SubscriptionListener subListener = new SystemOutSubscriptionListener();
        sub.addListener(subListener);

        client.subscribe(sub);
        client.connect();

Share this post


Link to post

Hi,

A quick check, did you download the latest Lightstreamer version 7.0.3 Java SE Client SDK from the Lightstreamer site? Our servers are currently still using the older version 5.1.2 of Lightstreamer, so you will need to download the older Java SE version of the SDK matching that matches that version of Lightstreamer. 

What are the error messages you are receiving? The post above does not specify what issues you are encountering.

Kind Regards, PM

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×