modular_trader.framework.asset_selection.manual#
Classes#
Selects the assets based on a predefined list of symbols. |
Module Contents#
- class modular_trader.framework.asset_selection.manual.ManualAssetSelection#
Bases:
modular_trader.framework.asset_selection.base.BaseAssetSelection
Selects the assets based on a predefined list of symbols.
This class is used when the assets to be traded are known in advance.
- Attributes:
symbols (list[str]): A list of symbol strings.
- run(context: modular_trader.context.Context) Iterable[str] #
Selects the assets based on a predefined list of symbols.
- Args:
context (Context): The framework context.
- Returns:
Iterable[str]: An iterable of symbol strings.
- Parameters:
context (modular_trader.context.Context)
- Return type:
Iterable[str]
- symbols: list[str]#