Caplin Trader 4.8.0

Class: module:caplin/trading/trademodel/StreamingInstrumentDataSubscriber

module:caplin/trading/trademodel/StreamingInstrumentDataSubscriber

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

Constructor

new module:caplin/trading/trademodel/StreamingInstrumentDataSubscriber(oSubjectMapper)

Constructs a caplin.trading.trademodel.StreamingInstrumentDataSubscriber instance.
Parameters:
Name Type Description
oSubjectMapper module:caplin/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:caplin/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:caplin/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: