bayesline.api.equity.PositionPinConstraint#
- model PositionPinConstraint#
Fix the holding weight of listed assets to a target.
Targets are holding weights per unit of net nav, e.g. a hand-edited position that the rest of the book is optimized around. Ill-defined for a book whose net nav is ~0; such a book rejects an enabled pin at solve time.
Fields# Field
Type
Required
Default
Constraints
No
TrueLiteral[‘position_pin’]No
'position_pin'Literal[‘total’, ‘active’]No
'total'Yes
min_length=1