Caplin Trader 5.1.0

Interface: module:ct-trading/trademodel/TradingStatusChangedListener

module:ct-trading/trademodel/TradingStatusChangedListener

The TradingStatusChangedListener is the interface that interested listeners should implement to be alerted when trading becomes available or unavailable. An interested listener should implement this class and then add itself to the appropriate Trade instance by invoking the addTradeStatusChangedListener method on module:ct-trading/trademodel/Trade instance.

Methods

tradingStatusChanged(nStatus)

A listener method that is invoked when trading becomes unavailable.

Parameters:
Name Type Description
nStatus module:ct-trading/trademodel/TradingStatus

Indicates the current availability of trading for this listener. Please see module:ct-trading/trademodel/TradingStatus for a list of the possible values.