Constructor
new module:caplin/trading/restoration/TradeRestoredListener()
Defines an interface for classes interested in listening to trade restoration events.
A trade restoration is a server-side initiated operation that allows the client
to restore previously opened trades. The trading library will create a new
module:caplin/trading/trademodel/Trade
if the trade does not currently exist
on the client, and then will notify any TradeRestoredListener
s
about the restoration.
Methods
-
beforeTradeRestored(restoreDataEvent)
-
An event callback that will be invoked before the trade is restored.
Parameters:
Name Type Description restoreDataEvent
module:caplin/trading/restoration/TradeRestoreEvent An event object containing the trade restoration information. -
tradeRestored(tradeRestoredEvent)
-
An event callback that will be invoked after the trade is restored.
Parameters:
Name Type Description tradeRestoredEvent
module:caplin/trading/restoration/TradeRestoreEvent An event object containing the trade restoration information.