finalynx.fetch.fetch_line
ο
This file defines elements used to match Line
instances defined in the main portfolio
tree with investments fetched online (e.g. from your Finary account).
Module Contentsο
Classesο
Abstract class that defines common attributes used to match Keys (defined in the portfolio)
with FetchLines (created by fetch agents, e.g. |
|
Represents each investment found in your online accounts (e.g. Finary). The instance is
populated with information found online about this line. FetchLines will then be matched to Keys
defined in the portfolio to populate βrealβ |
APIο
- class finalynx.fetch.fetch_line.FetchAttribs[source]ο
Abstract class that defines common attributes used to match Keys (defined in the portfolio) with FetchLines (created by fetch agents, e.g.
FinaryFetch
).- name: Optional[str]ο
None
- id: Optional[str]ο
None
- account: Optional[str]ο
None
- custom: Optional[Dict[str, Any]]ο
None
- __post_init__() None [source]ο
Runs after an instance is created to validate inputs. At least one field must be set.
- abstract static from_dict(dict: Dict[str, Any]) finalynx.fetch.fetch_line.FetchAttribs [source]ο
- class finalynx.fetch.fetch_line.FetchLine[source]ο
Bases:
finalynx.fetch.fetch_line.FetchAttribs
Represents each investment found in your online accounts (e.g. Finary). The instance is populated with information found online about this line. FetchLines will then be matched to Keys defined in the portfolio to populate βrealβ
Line
instances with FetchLine information.- amount: floatο
0
- currency: Optional[str]ο
None
- matches_line(line: finalynx.portfolio.line.Line) bool [source]ο
- update_line(line: finalynx.portfolio.line.Line) None [source]ο
Update a
Line
instance, usually matched against a FetchKe, in the portfolio, with data fetched online.
- generate_line() finalynx.portfolio.line.Line [source]ο
Generate a basic Line instance from this abstract fetched line. Used when filling folders based on account filters.
- static from_dict(dict: Dict[str, Any]) finalynx.fetch.fetch_line.FetchLine [source]ο