bayesline.api.equity.MaxPositionSizeConstraint#
- model MaxPositionSizeConstraint#
Blanket cap on the absolute weight of every position.
The cap is a holding weight per unit of net nav and applies to every asset the problem can hold, long or short. Ill-defined for a book whose net nav is ~0; such a book rejects an enabled cap at solve time. Applies alongside
defaults.position_growth_cap; the tighter of the two binds.Fields# Field
Type
Required
Default
Constraints
No
TrueLiteral[‘max_position_size’]No
'max_position_size'Yes
gt=0
Literal[‘total’, ‘active’]No
'total'