Caplin Trader 4.7.1

Interface: module:caplin/trading/trademodel/TradeFactoryListener

module:caplin/trading/trademodel/TradeFactoryListener

The super constructor of implementors of TradeFactoryListener. classes implementing TradeFactoryListener are informed whenever a trade factory creates a trade.
Implementations:

Methods

tradeCreated(oTradeFactory, oTrade)

Notifies the listener that a trade has been created using the given factory.
Parameters:
Name Type Description
oTradeFactory module:caplin/trading/trademodel/TradeFactory The trade factory used to create the trade.
oTrade module:caplin/trading/trademodel/Trade The newly created trade.
Implementations:

tradeRemoved(oTrade, sTradeID)

Notifies the listener that a trade has been removed.
Parameters:
Name Type Description
oTrade module:caplin/trading/trademodel/Trade The removed trade.
sTradeID String The Id for oTrade
Implementations: