finalynx.analyzer.asset_class
ο
Module Contentsο
Classesο
Aims to agglomerate the childrenβs asset classes and return the amount represented by each asset class. |
APIο
- class finalynx.analyzer.asset_class.AnalyzeAssetClasses(node: finalynx.portfolio.Node)[source]ο
Bases:
finalynx.analyzer.analyzer.Analyzer
Aims to agglomerate the childrenβs asset classes and return the amount represented by each asset class.
- Returns:
a dictionary with asset classes as keys and the corresponding total amount contained in the children.
Initialization
- ASSET_COLORS_FINARYο
None
- ASSET_COLORS_CUSTOMο
None
- analyze() Dict[str, Any] [source]ο
- Returns:
A dictionary with keys as the asset class names and values as the sum of investments corresponding to each class. Two-layer dictionary with classes and subclasses.
- analyze_flat() Dict[str, float] [source]ο
- Returns:
A dictionary with keys as the asset class names and values as the sum of investments corresponding to each class.
- _recursive_merge_flat(node: finalynx.portfolio.Node) Dict[str, Any] [source]ο
Internal method for recursive searching.