finalynx.analyzer.asset_subclass
ο
Module Contentsο
Classesο
Aims to agglomerate the childrenβs Sub asset classes and return the amount represented by each Sub asset class. |
APIο
- class finalynx.analyzer.asset_subclass.AnalyzeAssetSubclasses(node: finalynx.portfolio.Node)[source]ο
Bases:
finalynx.analyzer.analyzer.Analyzer
Aims to agglomerate the childrenβs Sub asset classes and return the amount represented by each Sub asset class.
- Returns:
a dictionary with Sub asset classes as keys and the corresponding total amount contained in the children.
Initialization
- SUBASSET_COLORS_FINARYο
None
- SUBASSET_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 Sub asset class names and values as the sum of investments corresponding to each subclass.