ConradSelig / cliStocksTracker

A command line utility for tracking a stock market portfolio. Primarily featuring high resolution braille graphs.
Apache License 2.0
56 stars 14 forks source link

Portfolio table width #17

Open ConradSelig opened 3 years ago

ConradSelig commented 3 years ago

Currently it just prints each portfolio entry as one line - regardless of what width the user has set in their config file. This table should follow the same restrictions the graphs do.

ConradSelig commented 3 years ago

Looking at pull #30, I think that scaling the table should follow these steps:

Two table approach: 1st table has the following columns: Ticker, Last, Change, Change%, Low, High, Daily Avg 2nd table has the following columns: Ticker, Owned, Mkt Value, Avg Share, Total Cost

Three table approach: 1st table has the following columns: Ticker, Last, Change, Change% 2nd table has the following columns: Ticker, Low, High, Daily Avg 3rd table has the following columns*: Ticker, Owned, Mkt Value, Avg Share Note that yes, "Total Cost" is missing from the three table approach. Had to cut a column somewhere so that the three table approach would have at most four columns per table.

*columns are based off the table from pull #30

This is all a just a ballpark idea - if whoever takes this ticket can think of a better way to do things that by all means! I love seeing creative solutions.