Caplin Trader 5.1.0

Class: module:ct-fx/providers/PermissionedTenorService

module:ct-fx/providers/PermissionedTenorService(tenorNamespace)

new module:ct-fx/providers/PermissionedTenorService(tenorNamespace)

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

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", ...].

Implements:
See:

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.

Implements:
See: