new module:ct-fx /services /Tenor Service()
Provides Foreign Exchange Tenors.
Methods
add Tenor Listener(sCurrency Pair, 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", ...]. |
remove Tenor Listener(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. |