Caplin Trader 4.7.1

Class: module:caplin/fx/services/CurrencyPairService

module:caplin/fx/services/CurrencyPairService

Provides a list of available Foreign Exchange currency pairs for the logged in user.

Constructor

new module:caplin/fx/services/CurrencyPairService()

Methods

addCurrencyPairListener(sCurrencyPair, fCallback)

Registers a function that is executed whenever the available currency pairs for the logged in user change.
Parameters:
Name Type Description
sCurrencyPair String oTradeRestoredListener The listener to add.
fCallback function Function with 2 parameters: 1) The user that the currency pairs are for 2) An array of Currency Pairs.
See:

removeCurrencyPairListener(fCallback)

Removes the previously registered CurrencyPairListener.
Parameters:
Name Type Description
fCallback function The previously registered callback function for removal.
See: