Constructor
new module:caplin/fx/services/TenorService()
Provides Foreign Exchange Tenors.
Methods
-
addTenorListener(sCurrencyPair, fCallback)
-
Registers a function that is executed whenever the available tenors change.
Parameters:
Name Type Description sCurrencyPair
String The currency pair to which the tenors apply. fCallback
function The function that will be called once the tenors have been received. The callback function will be provided with an array of tenors, e.g ["SPOT", "1M", "2M", ...]. -
removeTenorListener(fCallback)
-
Removes the specified function from the list of listeners currently receiving tenor list updates.
Parameters:
Name Type Description fCallback
function The callback to remove.