bayesline.api.equity.PortfolioOrganizerSettingsMenu#
- pydantic model bayesline.api.equity.PortfolioOrganizerSettingsMenu#
Show JSON schema
{ "title": "PortfolioOrganizerSettingsMenu", "type": "object", "properties": { "sources": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Mapping of sources to the available portfolio IDs for that source.", "title": "Sources", "type": "object" } }, "additionalProperties": false, "required": [ "sources" ] }
- Config:
frozen: bool = True
extra: str = forbid
- Fields:
sources (dict[str, list[str]])
-
field sources:
dict
[str
,list
[str
]] [Required]# Mapping of sources to the available portfolio IDs for that source.
- describe(settings: PortfolioOrganizerSettings | None = None) → str#
Parameters#
- settingsSettingsType | None
The settings to describe. If None, then the description is not evaluated against any settings.
Returns#
A human readable description of the settings menu, optionally evaluated against the given settings.
- validate_settings(settings: PortfolioOrganizerSettings) → None#
Validates if the given settings are valid for this settings menu.
Parameters#
- settingsSettingsType
The settings to validate.
Raises#
ValidationError if a pydantic error occurs or ValueError if passed settings values are invalid.