Caplin Trader 5.1.0

Interface: module:ct-trading/trademodel/TradeOnBehalfOfListener

module:ct-trading/trademodel/TradeOnBehalfOfListener

The TradeOnBehalfOfListener interface allows interested parties to be informed when a "trade on behalf of" change is initiated by the module:ct-trading/trademodel/TradeOnBehalfOf object, and when the "trade on behalf of" change is completed.

Methods

tradeOnBehalfOfChangeFailed(sPermissionable)

A pending "trade on behalf of" change has failed, and any subsequent prices are from the old tier.

Parameters:
Name Type Description
sPermissionable String

A string representing the permissionable item that we failed to "trading on behalf of".

tradeOnBehalfOfChangeInitiated(sPermissionable)

A "trade on behalf of" change has been initiated, and we are currently awaiting prices for the new tier. Any existing prices should be considered stale.

Parameters:
Name Type Description
sPermissionable String

A string representing the permissionable item that we are going to "trade on behalf of".

tradeOnBehalfOfUserChanged(sPermissionable)

A "trade on behalf of" change has been completed, and any subsequent prices are from the new tier.

Parameters:
Name Type Description
sPermissionable String

A string representing the permissionable item that we are now "trading on behalf of".