Class
caplin.trading.restoration

TradeRestoredListener

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 caplin.trading.trademodel.Trade if the trade does not currently exist on the client, and then will notify any TradeRestoredListeners about the restoration.

Constructor Summary

Attributes Name and Description
caplin.trading.restoration.TradeRestoredListener()

Defines an interface for classes interested in listening to trade restoration events.

Method Summary

Attributes Name and Description
void beforeTradeRestored(caplin.trading.restoration.TradeRestoreEvent oRestoreDataEvent)

An event callback that will be invoked before the trade is restored.

void tradeRestored(caplin.trading.restoration.TradeRestoreEvent oTradeRestoredEvent)

An event callback that will be invoked after the trade is restored.

Constructor Detail

caplin.trading.restoration.TradeRestoredListener()

Defines an interface for classes interested in listening to trade restoration events.

Method Detail

void beforeTradeRestored(caplin.trading.restoration.TradeRestoreEvent oRestoreDataEvent)

An event callback that will be invoked before the trade is restored.

Parameters
caplin.trading.restoration.TradeRestoreEvent oRestoreDataEvent An event object containing the trade restoration information.

void tradeRestored(caplin.trading.restoration.TradeRestoreEvent oTradeRestoredEvent)

An event callback that will be invoked after the trade is restored.

Parameters
caplin.trading.restoration.TradeRestoreEvent oTradeRestoredEvent An event object containing the trade restoration information.