diff options
Diffstat (limited to 'cli/src/trading_cli/commands/portfolio.py')
| -rw-r--r-- | cli/src/trading_cli/commands/portfolio.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cli/src/trading_cli/commands/portfolio.py b/cli/src/trading_cli/commands/portfolio.py new file mode 100644 index 0000000..9389bac --- /dev/null +++ b/cli/src/trading_cli/commands/portfolio.py @@ -0,0 +1,20 @@ +import click + + +@click.group() +def portfolio(): + """Portfolio management commands.""" + pass + + +@portfolio.command() +def show(): + """Show the current portfolio holdings and balances.""" + click.echo("Fetching current portfolio...") + + +@portfolio.command() +@click.option("--days", default=30, show_default=True, help="Number of days of history") +def history(days): + """Show PnL history for the portfolio.""" + click.echo(f"Fetching PnL history for the last {days} days...") |
