Constructor
new module:ct-trading /trademodel /Streaming Instrument Data Subscriber(oSubject Mapper)
Constructs a StreamingInstrumentDataSubscriber instance.
Parameters:
| Name | Type | Description |
|---|---|---|
oSubjectMapper |
module:ct-trading |
Maps the instrument to a subject name, as understood by the Liberator. |
- Implements:
Throws:
-
if
oSubjectMapperisnullor is of an incorrect type. - Type
-
module:ct-core
/Error
Methods
add Data Changed Listener(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 |
The callback object |
remove Data Changed Listener(oListener)
Removes the previously registered DataChangedListener.
Parameters:
| Name | Type | Description |
|---|---|---|
oListener |
The object to be called removed |