achannarasappa / ticker

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

ticker print - only does "default" group #219

Open reefland opened 2 years ago

reefland commented 2 years ago

Describe the bug Running ticker print only outputs items defined in the lots: section. It does not show anything from my groups: and holdings:

Expected behavior Expect the output of ticker print to include all holdings defined in the yaml file.

shaunmolloy commented 2 years ago

Nice suggestion.

Maybe a flag could be added for --group with a default as default

ticker print --help

Prints holdings

Usage:
  ticker print [flags]

Flags:
      --config string   config file (default is $HOME/.ticker.yaml)
      --format string   output format for printing holdings. Set "csv" to print as a CSV or "json" for JSON. Defaults to JSON.
  -h, --help            help for print
xrat commented 11 months ago

+1 I use ticker print --format csv in a daily cronjob and would very much like to have my watchlist included in the report.