data_service
DataService: loads a simulation from a zip archive.
Classes:
-
DataService–Loads simulation state (Bank + MarketDataStore) from a zip archive.
DataService
DataService(
instrument_registry: InstrumentRegistry | None = None,
)
Loads simulation state (Bank + MarketDataStore) from a zip archive.
Methods:
-
load_and_initialize–Populate stores from loader and post opening balances.
load_and_initialize
load_and_initialize(
loader: Loader, simulation_service: SimulationService
) -> None
Populate stores from loader and post opening balances.
The loaded zip must include balances.json with pre-computed ledger
balances (produced by :class:SimulationBuilder). A single Opening
Balance journal entry is posted to establish the ledger state.