bayesline.api.equity.PositionBoundConstraint#
- model PositionBoundConstraint#
Per-asset holding weight bounds.
Only the listed assets are bounded; every other position is free. A
minof zero on a name keeps it long-only, amaxof zero keeps it short-only or flat.Fields# Field
Type
Required
Default
Constraints
Yes
min_length=1
No
TrueLiteral[‘position_bound’]No
'position_bound'Literal[‘total’, ‘active’]No
'total'- field bounds: dict[str, PositionBound] [Required]#
Bounds keyed by asset id, in the risk model’s asset id type.
- Constraints:
min_length =
1