Skip to content

feat: broker chart for the portfolio (same series as the app depot chart) #35

Description

@lennox-84

Problem or use case

sc broker chart only works per ISIN (--isin + --timeframe). That covers a security mid series, not the depot chart the Scalable Broker app already shows for the whole portfolio.

Tried on CLI 1.0.0:
sc broker chart --timeframe 1y --json → invalid_input: required arguments were not provided
sc broker chart --portfolio-id PORTFOLIO_ID --timeframe 1y --json → invalid_input: unexpected argument '--portfolio-id' found

sc broker chart --help confirms both --isin and --timeframe are required. There is no portfolio mode.
sc broker overview gives simpleAbsoluteReturn per timeframe — one number, not the time series

Scripts that want the same portfolio curve as the app currently have to reconstruct it from transactions plus an external price source. That cannot match the broker’s own marks.

The series must already exist server-side: the app renders it for the same account and the same timeframes.

Proposed solution

Expose the existing app depot/portfolio chart through the CLI

sc broker chart --timeframe 1y
sc broker chart --portfolio-id PORTFOLIO_ID --timeframe 1y --json

No new calculation and no CLI-only interpretation — the same first-class series the app already uses.

Alternatives considered

Summing sc broker chart --isin across holdings: missing cash, deposits, fees, taxes, and historical quantities; also sparse (max is roughly monthly).

Rebuilding NAV from transactions + external OHLC: possible, but it is not the broker’s curve.

Relevant command or workflow

sc broker chart --isin --timeframe 1m (exists today) / sc broker chart --timeframe 1m (requested) / sc broker overview (scalars only)

User impact

Small quality-of-life improvement

Checklist

  • I have searched existing issues.
  • This is a CLI feature request, not an account/support request.
  • I understand this repository is source-available and does not accept external PRs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions