What it does
Takes an investment profile containing an initial balance, monthly income, monthly expenses, monthly investment, initial investments, and strategy and calculates their investment gains if they invested their monthly investment according to their strategy.
How we built it
Closing price of NASDAQ:AAPL, NASDAQ:GOOG, NASDAQ:MSFT, NASDAQ:TSLA, NYSE:GM, NYSE:F, TSE:TD, TSE:BNS, TSE:RY from 2014 to 2023 was fetched from Google Finance and saved into spreadsheet using the apps script.
What I learned
Gained experience working with data.
Next steps
-Short-term: Verify it's making the correct calculations. -Long-term: Link with a database and create a command-line interface to track investments in real-time.
How to use
Download the app and run: python3 ./main.py
Modify the investor variable in main.py, save, and re-run.
The strategy gives the percentage of investment amount going towards each stock. Examples:
Tech: 'strategy': {"NASDAQ:AAPL":0.3, "NASDAQ:GOOG":0.3, "NASDAQ:MSFT":0.4, "NASDAQ:TSLA":0, "NYSE:GM":1, "NYSE:F":0, "TSE:TD":0, "TSE:BNS":0, "TSE:RY":0} Auto: 'strategy': {"NASDAQ:AAPL":0, "NASDAQ:GOOG":0, "NASDAQ:MSFT":0, "NASDAQ:TSLA":0.3, "NYSE:GM":0.3, "NYSE:F":0.4, "TSE:TD":0, "TSE:BNS":0, "TSE:RY":0} Banking: 'strategy': {"NASDAQ:AAPL":0, "NASDAQ:GOOG":0, "NASDAQ:MSFT":0, "NASDAQ:TSLA":0, "NYSE:GM":0, "NYSE:F":0, "TSE:TD":0.3, "TSE:BNS":0.3, "TSE:RY":0.4} Mixed: 'strategy': {"NASDAQ:AAPL":0.1, "NASDAQ:GOOG":0.1, "NASDAQ:MSFT":0.1, "NASDAQ:TSLA":0.3, "NYSE:GM":0, "NYSE:F":0, "TSE:TD":0, "TSE:BNS":0.2, "TSE:RY":0.2}
Log in or sign up for Devpost to join the conversation.