achannarasappa / ticker

Terminal stock ticker with live updates and position tracking
GNU General Public License v3.0
4.97k stars 268 forks source link

Feature request: Groups #99

Closed JustinAiken closed 2 years ago

JustinAiken commented 3 years ago

Problem Statement Differing investments - larger long-term crypto holdings vs day-traded weed stocks are all grouped and sorted together

Proposed Solution

Alternatives A tabbed view as described in #94 might also be nice

MateuszPu commented 3 years ago

I think the temporary workaround for this problem is creating multiple config files and run ticker with --config command. ex: ticker --config myportfolio1.yml ticker --config myportfolio2.yml ticker --config myportfolio3.yml

Aqualie commented 3 years ago

This would be a nice feature to have in the config we could possibly add a new option for each ticker to define the association to various groups, if this configuration is missing then they would be grouped under a "Default" group section.

watchlist:
  - ticker: NET
    group: B
  - ticker: TEAM
    group: B
  - ticker: ESTC
     group: A
  - ticker: BTC-USD

In the UI I think the tab idea would look the best given the current UI layout to represent the groups.

pflodo commented 3 years ago

I love feature requests - costs nothing to wish :-)

  1. Change tabs, would naturally use the left and right arrows - but you already use bubbletea - which has mouse support, which I think would be good if you went down tabs route
  2. Auto cycling of tabs would also be good on a timer
  3. for rendering tabs - The bubbletea authors also make https://github.com/charmbracelet/lipgloss

Screenshot from 2021-06-18 17-33-12

xwjdsh commented 3 years ago

@Aqualie I like your idea, but that change will bring breaking changes. How do you think of this way, symbol and groups are separated by colons.

watchlist:
  - NET:B,A
  - TEAM:B
  - ESTC:A
  - BTC-USD
achannarasappa commented 2 years ago

This has been added in v4.40 see https://github.com/achannarasappa/ticker#groups