Class
caplin.fx.services

TenorService

Provides Foreign Exchange Tenors.

Constructor Summary

Attributes Name and Description
caplin.fx.services.TenorService()

Method Summary

Attributes Name and Description
void addTenorListener(String sCurrencyPair, Function fCallback)

Registers a function that is executed whenever the available tenors change.

void removeTenorListener(Function fCallback, fErrorCallback)

Removes the specified function from the list of listeners currently receiving tenor list updates.

Constructor Detail

caplin.fx.services.TenorService()

Method Detail

void addTenorListener(String sCurrencyPair, Function fCallback)

Registers a function that is executed whenever the available tenors change.

Parameters
String sCurrencyPair The currency pair to which the tenors apply.
Function fCallback 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

void removeTenorListener(Function fCallback, fErrorCallback)

Removes the specified function from the list of listeners currently receiving tenor list updates.

Parameters
Function fCallback The callback to remove.
fErrorCallback
See
#addTenorListener