Caplin Trader 5.0.0

Class: module:ct-fx/services/TenorService

module:ct-fx/services/TenorService()

new module:ct-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", ...].

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.

See: