Fixed

Rebalancing validation error examples now match returned messages

Broker API

Updates the documented 400 validation error examples and message templates on the rebalancing endpoints so they match the messages the API actually returns.

  • Parse failures now read invalid value or value is empty instead of internal parser text, for example amount must be a decimal: invalid value.
  • Six message templates now end in {parse_error} (`invalid value` or `value is empty`), and the annual-day placeholder {time_parse_error} is renamed to {parse_error}.
  • The cash weight template is now weights[{index}].percent: value is empty, its only possible outcome.
  • The nested portfolio weights error message is now portfolio contains nested portfolio weights and cannot be updated or deleted through this API.

Error codes and HTTP statuses are unchanged, and no accepted request changes.

Affected Endpoints

  • POST /v1/rebalancing/portfolios
  • PATCH /v1/rebalancing/portfolios/{portfolio_id}
  • DELETE /v1/rebalancing/portfolios/{portfolio_id}
  • POST /v1/rebalancing/runs