Some questions about design decisions #48
-
|
This is an awesome tool you built! I'm wondering why how the first step involving importing the transactions work. The function Also, about calculating portfolio returns, I saw you use the IRR method instead of Modified Dietz Return. How do you account for withdraws / deposits? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Oh, also curious to ask, how do you go about collecting the transaction data? I can speak to the big brokers in the US: they give you a monthly statement in a PDF, so that's not easy to work with. If you have a history, or make a lot of transactions, manually entering them in to a spreadsheet may not be the most efficient.... |
Beta Was this translation helpful? Give feedback.
-
Hey Steve, Happy CNY! Yes you're right, the golden source of transactions are stored on an Excel spreadsheet. They are then inserted (or cached) into MongoDB so that the processes (calculations, plotting of charts, etc.) can query directly from MongoDB instead of reading all rows from the spreadsheet for every process. See https://github.com/wilsonleong/PortfolioAnalytics/wiki/How-to-plug-in-your-own-data for more details. For calculating the portfolio returns (https://github.com/wilsonleong/PortfolioAnalytics/wiki/Calculation-of-Returns), I use IRR, which adjusts for cash flows, i.e. withdrawals, deposits, coupons/dividends, etc. |
Beta Was this translation helpful? Give feedback.
Hey Steve, Happy CNY! Yes you're right, the golden source of transactions are stored on an Excel spreadsheet. They are then inserted (or cached) into MongoDB so that the processes (calculations, plotting of charts,…