src.data_sources.annuity.product.base.crediting_rate.fixed.FixedCreditingRate

class src.data_sources.annuity.product.base.crediting_rate.fixed.FixedCreditingRate(path: str)

Data source for the fixed account crediting table.

Inheritance Diagram

Inheritance diagram of FixedCreditingRate

Variables & Properties

Methods

__init__(path)

Constructor method.

crediting_rate(account_name)

Returns the fixed account crediting rate.

Details

__init__(path: str)

Constructor method. Loads data from the fixed account crediting table into cache.

Relative path to the fixed account crediting table:

resource/annuity/product/base/crediting_rate_fixed.csv

Parameters:

path – Path to the fixed account crediting table.

cache: DataFrame

Internal cache, populated at runtime.

crediting_rate(account_name: str) float

Returns the fixed account crediting rate.

Parameters:

account_name – Account name.

Returns:

Fixed account crediting rate.