Build an allocation
build_allocationConvert verified stock candidates and available cash into equal-weight whole-share targets, with a per-name cap and round-down sizing that never exceeds your balance.
Instructions
Turn a verified candidate list and a cash balance into whole-share position targets. Equal weight by default, with a per-name cap and whole-share rounding that always rounds down, so the plan can never exceed the balance. Only pass names you have actually verified with analyze_ticker: a weighting implies a level of diligence a screen does not provide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidates | Yes | ||
| perTradeCost | No | Per-trade commission, subtracted before sizing. | |
| availableCash | Yes | Cash available to deploy. | |
| maxPositionFraction | No | Hard ceiling on any one name, as a fraction of the balance. | |
| allowFractionalShares | No | Most brokers settle whole lots; off by default. |