Added

New rebalancer events SSE stream

Broker API

Adds the rebalancer event stream to the Broker API reference. Subscribe with GET /v2/events/rebalancer to receive rebalancing activity over SSE.

  • portfolio.status_changed carries the portfolio snapshot; cash weights are returned with "symbol": null.
  • run.created and run.status_changed both carry the full run snapshot (RebalancerEventRun); order lists are omitted.
  • Run type is one of full_rebalance, partial_liquidation, or invest_cash, and initiated_from is one of system, api, or dashboard. These values are shared with the REST run endpoints via the new PortfolioRunType and PortfolioRunInitiator schemas.
  • Run status on this stream does not include CANCELED_MID_RUN; that value remains on the REST PortfolioRunStatus.
  • since and until select events by the time encoded in event_id, not by at. Last-Event-Id takes precedence over since_id, and combining Last-Event-Id with since is an error.
  • Rebalance conditions on this stream use RebalancerEventRebalanceCondition; empty sub_type, percent, and day are omitted.

Affected Endpoints

  • GET /v2/events/rebalancer
  • GET /v1/rebalancing/runs
  • GET /v1/rebalancing/runs/{run_id}