Class
caplin.fx.services

CurrencyPairService

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

Constructor Summary

Attributes Name and Description
caplin.fx.services.CurrencyPairService()

Method Summary

Attributes Name and Description
void addCurrencyPairListener(String sCurrencyPair, Function fCallback)

Registers a function that is executed whenever the available currency pairs for the logged in user change.

void removeCurrencyPairListener(function fCallback)

Removes the previously registered CurrencyPairListener.

Constructor Detail

caplin.fx.services.CurrencyPairService()

Method Detail

void addCurrencyPairListener(String sCurrencyPair, Function fCallback)

Registers a function that is executed whenever the available currency pairs for the logged in user change.

Parameters
String sCurrencyPair oTradeRestoredListener The listener to add.
Function fCallback Function with 2 parameters: 1) The user that the currency pairs are for 2) An array of Currency Pairs.
See
#removeCurrencyPairListener

void removeCurrencyPairListener(function fCallback)

Removes the previously registered CurrencyPairListener.

Parameters
function fCallback The previously registered callback function for removal.
See
#addCurrencyPairListener