src.data_sources.annuity.product.gmwb.charge.GmwbCharge

class src.data_sources.annuity.product.gmwb.charge.GmwbCharge(path: str)

Data source for the GMWB charge rate.

Inheritance Diagram

Inheritance diagram of GmwbCharge

Variables & Properties

Methods

__init__(path)

Constructor method.

charge_rate(product_name)

Returns a GMWB charge rate.

Details

__init__(path: str)

Constructor method. Loads data from the GMWB charge table into cache.

Relative path to the GMWB charge table:

resource/annuity/product/gmwb/charge.csv

Parameters:

path – Path to the GMWB charge table.

cache: DataFrame

Internal cache, populated at runtime.

charge_rate(product_name: str) float

Returns a GMWB charge rate.

Parameters:

product_name – Product name.

Returns:

GMWB charge rate.