feat: Add VOO to portfolio and improve configuration comments

This commit is contained in:
C committed 2026-07-02 18:56:30 -07:00
1 parent 5687532c01
commit f77b5f33b9
1 file changed
+8 -1
+8 -1
View File
@@ -25,12 +25,19 @@ struct Stock { const char* symbol; float shares; float costBasis; bool useAV; };
Stock myPortfolio[] = { Stock myPortfolio[] = {
{ "AMD", 2.0000f, 53.02f, false }, { "AMD", 2.0000f, 53.02f, false },
{ "SWPPX", 41.2180f, 743.39f, true }, // mutual fund -> Alpha Vantage { "SWPPX", 41.2180f, 743.39f, true },
{ "TSLA", 1.0000f, 370.50f, false }, { "TSLA", 1.0000f, 370.50f, false },
{ "SPYI", 6.0000f, 313.15f, false }, { "SPYI", 6.0000f, 313.15f, false },
{ "JEPQ", 3.0000f, 178.52f, false }, { "JEPQ", 3.0000f, 178.52f, false },
{ "SCHD", 3.0000f, 95.97f, false }, { "SCHD", 3.0000f, 95.97f, false },
{"VOO", 1.0000f, 684.60f, true },
}; };
// To add an entry: { "SYMBOL", shares, costBasis, useAV }
// useAV = false -> Finnhub (stocks & ETFs)
// useAV = true -> Alpha Vantage (mutual funds e.g. SWPPX)
// costBasis -> total amount paid (Value $ - Total Gain $ from your broker CSV)
// The display auto-scales font size to fit all entries on one page.
const int NUM_STOCKS = sizeof(myPortfolio) / sizeof(myPortfolio[0]); const int NUM_STOCKS = sizeof(myPortfolio) / sizeof(myPortfolio[0]);
// ------------------------------------------------------- // -------------------------------------------------------