Caplin Trader 5.0.0

Class: module:ct-trading/trademodel/StreamingInstrumentDataSubscriber

module:ct-trading/trademodel/StreamingInstrumentDataSubscriber(oSubjectMapper)

The StreamingInstrumentDataSubscriber class provides a streaming transport implementation of the module:ct-trading/trademodel/InstrumentDataSubscriber.

Constructor

new module:ct-trading/trademodel/StreamingInstrumentDataSubscriber(oSubjectMapper)

Constructs a StreamingInstrumentDataSubscriber instance.

Parameters:
Name Type Description
oSubjectMapper module:ct-trading/trademodel/SubjectMapper

Maps the instrument to a subject name, as understood by the Liberator.

Implements:
Throws:

if oSubjectMapper is null or is of an incorrect type.

Type
module:ct-core/Error

Methods

addDataChangedListener(oListener)

Adds an object that will have its a callback method executed when the server returns data.

Parameters:
Name Type Description
oListener module:ct-trading/trademodel/DataChangedListener

The callback object

See:

removeDataChangedListener(oListener)

Removes the previously registered DataChangedListener.

Parameters:
Name Type Description
oListener

The object to be called removed

See: