This subpackage has a dedicated milestone in the development steps.
This is the core subpackage of Finalynx. It defines the Portfolio tree, folders and line objects, targets, and buckets for each node in the tree.
Here is a quick help to navigate this subpackage:
Hierarchyis the base abstract class for classes that hold references to their parents (
Nodeis an abstract class to define a level in the tree that adds a name and target. It has the following subclasses:
Linerepresents a single investment line in your Finary account. It adds an amount which is fetched from Finary.
Folderadds a list of children and additional rendering logic to generate the console output.
SharedFoldertakes a single
Bucketas input and uses its superclass’ list of children to hold the lines from the bucket. It adds a target amount that defines how much to take from the bucket before letting the other shared folders use what’s left.
Portfoliois nothing more than a simple renaming of
Folderfor user clarity.
Bucketis a list of
Lineobjects with additional logic to let shared folders use a portion of the total amount.
Targetis an abstract class that defines a common logic and console rendering for all subclasses. Checkout the submodule to see which targets are available.
constants is not used for now, but may soon be the basis of future