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...")