Skip navigation links

StreamLink Java 7.1.0-3721-10b9a50 API Documentation

StreamLink is an API that allows an application to exchange real-time financial data and trade messages with Caplin Liberator servers via the Web or other TCP/IP network.

See: Description

Packages 
Package Description
com.caplin.streamlink
The interfaces within this package provide the functionality of StreamLink.
com.caplin.streamlink.alerts
The interfaces within this package provide the functionality of Triggers and Notifications.

StreamLink is an API that allows an application to exchange real-time financial data and trade messages with Caplin Liberator servers via the Web or other TCP/IP network.

It provides the following capabilities:

Getting Started

It is recommended that you read the Caplin StreamLink Overview to gain understanding of:

Subscribing to data and receiving updates

To subscribe to data and receive updates to the data you need to:

Handling responses

The API operates asynchronously. This means that when the client application code issues a subscription request or a command to StreamLink, the response is not returned immediately through the method used to issue the request or command. Instead, you must set up a listener object (SubscriptionListener). You then supply this listener to StreamLink. StreamLink calls the appropriate callback method(s) on the listener object to communicate data and command responses back to the client code.

Implementing interfaces

Much of the StreamLink API is defined as interfaces. You must implement some of the interfaces in order use StreamLink. These implementations effectively integrate StreamLink with your client application. There are also protocols with implementations that are built into the API, so in these cases you do not need to write your own.

Note:The description of each interface states if you must implement it before use.

As a minimum you need to implement the SubscriptionListener interface. StreamLink calls your SubscriptionListener implementation to deal with events concerning subscriptions to data.

You should also implement the ConnectionListener interface if you want to provide users of your application with information about the state of the connection.

Skip navigation links

Please send bug reports and comments to Caplin support