Skip to content

PortfolioExpConfig


dataclass backtide.backtest.PortfolioExpConfig

Portfolio settings for an experiment.

Attributes

initial_cash : int, default=10000

Cash balance at the start of the simulation.

base_currency : str | Currency, default="USD"
ISO 4217 code the portfolio is denominated in.

starting_positions : dict[str, float], default={}
Pre-loaded positions {symbol: quantity}. Fractional values are accepted only for crypto instruments.


See Also

ExchangeExpConfig

Exchange and execution settings for an experiment.

ExperimentConfig

Complete configuration for a single backtest experiment.

StrategyExpConfig

Strategy settings for an experiment.


Methods

to_dict Convert to a dictionary.


method backtide.backtestto_dict()

Convert to a dictionary.

Returns

dict

Self as dict.