new module:ct-trading /restoration /Trade Restored Listener()
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:ct-trading/trademodel/Trade
if the trade does not currently exist
on the client, and then will notify any TradeRestoredListener
s
about the restoration.
Methods
before Trade Restored(restore Data Event)
An event callback that will be invoked before the trade is restored.
Parameters:
Name | Type | Description |
---|---|---|
restoreDataEvent |
module:ct-trading |
An event object containing the trade restoration information. |
trade Restored(trade Restored Event)
An event callback that will be invoked after the trade is restored.
Parameters:
Name | Type | Description |
---|---|---|
tradeRestoredEvent |
module:ct-trading |
An event object containing the trade restoration information. |