Caplin Trader 5.1.0

Interface: module:ct-trading/trademodel/DataFieldChangedListener

module:ct-trading/trademodel/DataFieldChangedListener

The super constructor of implementors of DataFieldChangedListener.

DataFieldChangedListeners are notified whenever a data field value is changed in the data source.

Methods

dataFieldChanged(value, oldValue, tradeData, updateId)

Notifies listener that the data field value has changed.

Parameters:
Name Type Description
value String

The value that of the field that was changed.

oldValue String

The value of the field before the data was changed. This value will be undefined if there was no previous value.

tradeData Map

Map of the values changed in this update.

updateId int

Identifier that can be used to determine which update batch this notification belongs to.