bayesline.api.equity.OptimizerDefaults#
- model OptimizerDefaults#
Book-wide safeguards applied to every portfolio unless relaxed here.
None of them forces a trade: each cap is the larger of the current position and the threshold, so an existing position is never sold down by a default. Each rule is one value for the whole book; finer control (per side or per group) would widen these fields, not add constraints.
Fields# Field
Type
Required
Default
Constraints
No
TrueNo
0.05gt=0
No
0.1gt=0
- field long_only: bool [Optional]#
No new short exposure: a long cannot cross zero and an existing short cannot grow.