Map
. It also informs any
caplin.trading.trademodel.TradeFactoryListener registered via #addListener whenever it
creates a new trade.
Attributes | Name and Description |
---|---|
|
caplin.trading.trademodel.TradeFactory( oTradeMessageService)
The TradeFactory interface should be implemented by objects that create caplin.trading.trademodel.Trade objects. |
Attributes | Name and Description |
---|---|
|
void
createNewTrade(Map mTradeFields)
Create a |
|
void
restoreExistingTrade(caplin.trading.trademodel.Trade oTrade, Map mFieldMap)
Restores a trade that is currently known on the client. |
|
caplin.trading.trademodel.Trade
restoreNewTrade(Map mFieldMap)
Restores a trade that is not known on the client, then returns the newly created trade. |
►
caplin.trading.trademodel.TradeFactory( oTradeMessageService)
The TradeFactory interface should be implemented by objects that create caplin.trading.trademodel.Trade objects.
oTradeMessageService |
►
void
createNewTrade(Map mTradeFields)
Create a Trade
object for a new trade.
Map | mTradeFields | The map of fields required to create a trade. This should at least include AssetClass (e.g "FX"), TradingProtocol (e.g "RFS") and InstrumentName (e.g "/FX/GBPUSD"). |
►
void
restoreExistingTrade(caplin.trading.trademodel.Trade oTrade, Map mFieldMap)
Restores a trade that is currently known on the client.
caplin.trading.trademodel.Trade | oTrade | The trade object to restore. |
Map | mFieldMap | The trade data to restore the trade with. |
►
caplin.trading.trademodel.Trade
restoreNewTrade(Map mFieldMap)
Restores a trade that is not known on the client, then returns the newly created trade.
Map | mFieldMap | The data to restore the trade with. |