-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/attribution toolkit #3156
Feature/attribution toolkit #3156
Conversation
Awesome @Sammac-dev, I'll be deep diving into this also checking if the financial theory behind it is correct. Will get back to you soon 😁 |
Thanks @Sammac-dev. This looks awesome! One question: can you replace the yahoo query with yfinance. Since you can get the sector weightings with |
Thanks @JerBouma |
Yes you can just commit to your branch! |
@jmaslek that's been taken care of, I've committed the new code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Sammac-dev, I made quite some suggestions. The most prevalent ones are making sure that there are no calculations/operations done within the controller other than calling the model/view and that you segregate the attribution functionalities well enough so users can pick what they want. Feel free to contact me if you have any questions.
…le output optional, one type of output at a time
@JerBouma all the changes above have been committed. The only thing I'm not sure on is how to resolve the requirements.txt file. From our end we have no need for any changes to it outside of what is already on OpenBB-finance main branch. So let us know if there is anything we need to do from our end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor details and then it should be finished! :)
Hi Jeroen, the requested changes have been made. Note that in order to push I had to pull first which updated the branch. "portfolio_controller.py" was the only file that I've updated but I'm unsure if there is an issue with the way I've committed (I'm fairly new to working with forks/branches). The second commit (21d4fdd) is the merge. My changes are 54f1e2b |
Description
To use attribution toolkit run "attrib" from portfolio section after loading in portfolio
Requested by Product Manager Jeroen Bouma
How has this been tested?
This feature has been tested locally by running the terminal and checking that the outputs display correctly and as expected. The feature is found within the portfolio menu and is called via "attrib". The feature has been executed with default time period of all (using first date found in the portfolio loaded by the user) via the "attrib" command and also with different time periods selected such as "attrib -p 3m".
Checklist:
Others