bayesline.api.equity.PortfolioReturnsReportSettings#
- model PortfolioReturnsReportSettings#
Settings for a portfolio returns report.
Fields# Field
Type
Required
Default
No
factory
No
NoneNo
TrueYes
Literal[‘portfolio_returns’]No
'portfolio_returns'No
TrueLiteral[‘arithmetic’, ‘geometric’]No
'geometric'No
'USD'Validators# Validator
Mode
Fields
after
model
- field calendar: CalendarSettings [Optional]#
- Validated by:
- field normalize_holdings: bool [Optional]#
Whether returns are reported rather than PnL. Decomposed sleeve rows under one fund-of-funds root (e.g. ‘mmf1:p1’, ‘mmf1:{REST}’) are then contributions to that root: each is divided by the root’s whole-book NAV, each sleeve brings its own benchmark at its NAV and the root’s benchmark is the NAV-weighted mix of its sleeves’, and geometric periods link against the root’s returns, so sibling sleeves add up to the standalone root. Mixed-root groups, and every query with normalize_holdings=False, use their own grouped book.
- Validated by:
- field portfolio_hierarchy_settings: PortfolioHierarchySettings [Required]#
- Validated by:
- field rescale_bench: bool [Optional]#
Whether each benchmark is scaled to its portfolio’s NAV. Applies only when normalize_holdings is off; normalized reports always carry each benchmark onto its portfolio’s NAV and ignore this value.
- Validated by:
- validator validate_geometric_requires_normalized(mode=after)#
- Validates:
entire model