A command line investment assistant to organize your portfolio and simulate its future to reach your life goals.
Project description
Finary Assistant
Minimalistic command-line tool to help you manage your investments
Built with ❤︎ by Pierre Laclau and contributors. Logo generated by Midjourney.
Finary Assistant is a command-line tool to organize your investments portfolio and get automated monthly investment recommendations based on your future life goals. This tool synchronizes with your Finary account to show real-time investment values.
Don't have Finary yet? You can sign up using my referral link :sparkles: (or through the default page).
✨ Features
- ✅ Portfolio: Organize your assets, set targets, and sync with your Finary account.
- ⏳ Analyzer: Generate global statistics and graphs to understand each line and folder.
- ⏳ Simulator: Define your life goals and events, simulate your portfolio's future.
- ⏳ Assistant: Get monthly recommendations on where to invest next to meet your goals.
- 🙏 Extensions: Make this tool work for other people's situations. Contributions needed!
- 🙏 Optional: Nice but out-of-my-skills or time-consuming features. Any volunteers?
You can check the current development status. Contributions are warmly welcome!
🚀 Installation
Users
If you don't plan on touching the code, simply run (with python 3.8 and pip installed):
pip install finary_assistant
And you're done! Now create your own copy of the demo.py
example anywhere. You can try to run the demo first to make sure everything works. Now go customize it for your own needs 🚀
Pro Tip: Why not setup a script to autorun this project in a new terminal at startup? Could be a nice view 🤭
Contributors
- Clone this repository using the
--recursive
option to includefinary_api
:
git clone --recursive https://github.com/MadeInPierre/finary_assistant.git
# If you forgot --recursive: git submodule update --init --recursive
- Install the project in editable mode:
cd finary_assistant && pip install -e .
- Try the assistant with:
python examples/demo.py
If you see a template portfolio tree and your investments detected from Finary, then welcome to the (small) team! 🎉 Now create your own copy of the demo file and go customize it for your own needs (the name assistant_config
is recommended as it is ignored from git):
cp examples/demo.py assistant_config.py # <- Your own portfolio here
⚙️ Usage
The goal is to declare a tree structure of your entire portfolio investments independently from their host envelopes (e.g. PEA, AV, CTO, etc). Define your own asset-based global strategy without feeling constrainted by keeping similar assets in common envelopes. Once your entire portfolio strategy is defined here, find the best envelope for each line and add them to your Finary account (manual or automatic sync). Assistant will fetch each line and display your full portfolio with real-time amounts.
To create your portfolio, start with a Portfolio
object which holds a nested list of Line
, Folder
, and SharedFolder
objects:
Line
represents each individual investment. Set thekey
parameter as the name shown in your Finary account if different from the display name.Folder
holds a group of lines or subfolders to create a structure.SharedFolder
accepts aBucket
object which groups multiple lines as a single object. You can reference the same bucket multiple times in the tree and set differentbucket_amount
for each shared folder. Each folder will only take the provided amount and let others use the rest.
Finally, any object in the structure accepts an optional Target
. See the implementation guidelines below.
Example
Here is an example of a portfolio structure:
# Create a list of Lines that will be considered as a single Line.
my_bucket = Bucket([
Line('My Asset 1', key='name_in_finary'),
Line('My Asset 2', key='name_in_finary'),
# ...
])
# Define your entire portfolio structure
portfolio = Portfolio('My Portfolio', children=[
# Add a list of `Line`, `Folder`, and `SharedFolder` objects
Folder('Short term', children=[
Line('My Asset 3', key='name_in_finary'),
SharedFolder('My Folder', bucket=my_bucket, bucket_amount=1000),
# ...
]),
Folder('Long term', children=[
# Folders can be displayed as Expanded (default), Collapsed, or as a Line
Folder('Stocks', display=FolderDisplay.COLLAPSED, children=[
SharedFolder('My Folder', bucket=my_bucket), # display what's left in the bucket
# ...
]),
# ...
])
])
Targets
Any node in the tree accepts an optional target
parameter. See the full list of available targets here. Here is an example:
Folder('Stocks', target=TargetMin(2000, tolerance=500), children=[
Line('ETF World', key='Amundi ETF ...', target=TargetRatio(80, tolerance=5)),
# ... Other lines with the remaining 20% of the Stocks folder.
])
👨💻 Contributions
This repository is at a very early stage. If you'd like to contribute, please open an issue and ask me to write a detailed documentation! For new features or bug fixes, please fork the repository and use a feature branch. Please use the conventional commits guidelines for your commit messages. Pull requests, issues and open discussions are warmly welcome!
Unfortunately, I won't have time to make this tool work for everyone by default, but you are welcome to extend this project yourself (or hire me if you can't develop it yourself). Pull requests are welcome to create a useful tool for everyone!
📄 License
This project is under the GPLv3 License meaning anyone can use, share, extend, and contribute to this project as long as their changes are integrated to this repo or also published using GPLv3. Please contact me for any specific licensing requests.
💌 Donations
This is a personal project I have fun with on my free time. If you found it useful and wish to support my work, you can buy me a coffee! It would give me the motivation to keep improving it further :smile: Thank you!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for finary_assistant-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb8274377d3d86b32cbdea40b3b1eb725a22f50e33dc84237373e3430e77b78 |
|
MD5 | 11ae77d2ddf651aacc25789b0d71de29 |
|
BLAKE2b-256 | ff545d9b8c9c438d39d707c1569c8ad79ecb74997d0b9951b39ef50c2074fdf5 |