Fixed

"rebalance_conditions" corrected on portfolio endpoints

Broker API

The Portfolio schema previously documented a rebalancing_conditions string, which did not match the JSON the API returns. It is replaced by the required rebalance_conditions array; an empty array means the portfolio has no conditions.

  • Response items use the new RebalancingConditionsResponse schema. type, sub_type, percent, and day are always present; percent and day are null when they do not apply, and sub_type is an empty string for on_portfolio_update.
  • PATCH /v1/rebalancing/portfolios/{portfolio_id} now takes rebalance_conditions, the same key used on create. Omitting it leaves the existing conditions unchanged; sending [] removes every condition.
  • The update request body now requires at least one property (minProperties: 1), and cooldown_days is no longer required.
  • Updating a portfolio does not rebalance subscribed accounts by itself: each account is rebalanced the next time one of the portfolio's rebalance conditions is met during normal market hours, using the updated weights, and not while that account's cooldown is active. A portfolio with no rebalance conditions is rebalanced only when triggered manually.

Affected Endpoints

  • GET /v1/rebalancing/portfolios
  • GET /v1/rebalancing/portfolios/{portfolio_id}
  • POST /v1/rebalancing/portfolios
  • PATCH /v1/rebalancing/portfolios/{portfolio_id}