Caplin Trader 5.1.0

Class: module:ct-trading/grid/TradeModelRowSource

module:ct-trading/grid/TradeModelRowSource()

new module:ct-trading/grid/TradeModelRowSource()

A RowSource for displaying trades within a grid.

Implements:

Methods

tradeCreated(oTradeFactory, oTrade)

Notifies the listener that a trade has been created using the given factory.

Parameters:
Name Type Description
oTradeFactory module:ct-trading/trademodel/TradeFactory

The trade factory used to create the trade.

oTrade module:ct-trading/trademodel/Trade

The newly created trade.

Implements:

tradeRemoved(oTrade, sTradeID)

Notifies the listener that a trade has been removed.

Parameters:
Name Type Description
oTrade module:ct-trading/trademodel/Trade

The removed trade.

sTradeID String

The Id for oTrade

Implements: