new module:ct-fx /providers /Permissioned Tenor Service(tenor Namespace)
Defines an implementation of a ct-fx/services/TenorService
that uses the permission service for a source of tenors.
Parameters:
Name | Type | Description |
---|---|---|
tenorNamespace |
String | The permission namespace to use to get the tenors. |
- Implements:
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", ...]. |
- Implements:
- See:
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. |