Skip to content

Errors

INVALID_WEIGHTS

A weight is out of range, the weights do not sum to 1, or an identifier appears twice.

422Unprocessable contentRetry Not without changing the request.

Each weight must be greater than 0 and at most 1, the weights together must sum to 1.0 within ±0.001, and each identifier may appear only once.

Send weights as shares, not percentages (0.4, not 40), and normalise them so they add up to 1. Merge duplicate identifiers into one holding. The errors list points at each problem; a wrong sum points at /holdings.

Portfolio weights must sum to 1.0 (±0.001), got 0.900000.

The wording of detail can change. Branch on code, never on detail.