src.data_sources.annuity.model_points.model_point.accounts.Accounts

class src.data_sources.annuity.model_points.model_point.accounts.Accounts(data: List[Dict])

Data source collection that contains all accounts. Accounts are typically associated with a model point where one model point can have multiple accounts. For example, if a policyholder decides to invest in:

  • 20% SPX

  • 30% Bonds

  • 50% Money market

We might model this as three distinct accounts.

Inheritance Diagram

Inheritance diagram of Accounts

Variables & Properties

items

A list of all the items in this collection, as a set of key-value pairs.

keys

A list of all the keys in this collection.

Methods

__init__(data)

Constructor method.

Details

__init__(data: List[Dict])

Constructor method. Initializes a collection of accounts based on data within an annuity model point file, organized by account ID.

Parameters:

data – Data for multiple accounts.

property items: List[Tuple[K, V]]

A list of all the items in this collection, as a set of key-value pairs.

Returns:

List of key-value pairs.

property keys: List[K]

A list of all the keys in this collection.

Returns:

List of keys.