Caplin Trader 5.1.0

Class: module:ct-chart/service/StreamLinkChartService

module:ct-chart/service/StreamLinkChartService()

new module:ct-chart/service/StreamLinkChartService()

This is the default implementation for the caplin.chart-service service.

Implements:

Methods

discard(seriesRequest, listener)

Discards the chart data for the given request and listener.

Parameters:
Name Type Description
seriesRequest module:ct-chart/series/SeriesRequest

The series request object.

listener Object

The subscription event listener.

Implements:

retrieve(seriesRequest, listener)

Retrieves data based upon the provided request object.

Parameters:
Name Type Description
seriesRequest module:ct-chart/series/SeriesRequest

The series request object.

listener module:ct-chart/service/ChartServiceListener

The subscription event listener.

Implements:
Throws:

If seriesRequest was already used to retrieve the chart data.

Type
module:ct-core/Error