Hello everybody,
I have created a temporary branch to prepare the switch to a better documented Morningstar API. I already have a version which works well and just requires a bit of code clean-up as there is now a lot of unneeded legacy in the code. But I think it is ready for broader testing.
Would some of you be so kind to try out the new temporary branch and let me know, if there are issues?
The most attractive new feature is flexible retrieval of top holdings. You can decide, if you want 0, 10, 25, 100, 1000 or 3200 holdings per fund/etf. (I recommend not to use values above 100 for top holdings retrieval, if you plan to use the xml in PP in the longer run. The GUI of PP easily gets overloaded with the large numbers and you might not be able to edit the securities anymore. But of course, it doesn’t harm to open a throw-away copy of an xml file with thousands of holdings; and pp_data_fetched.csv will also have them all.).
Please note that I changed scaling from long equity to net equity. So the numbers might slightly deviate from the results of the main branch. Also the different API might provide slightly different values. (BTW: If anybody thinks that long equity is more suitable, please let me know. I am not sure, if I fully understand the implications of this change).
Here is the (temporary) location on GitHub:
I plan to merge this back to my main branch when it is ready.
Cheers.
P.S.: Up to now, the updates only affect funds/etfs. Retrieval for stocks remains unchanged.