blob: 9389bacf1c0a64be1358d29db2541057ef740460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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...")
|