SimulatedContractTickerMapper#

class qf_lib.backtesting.contract.contract_to_ticker_conversion.simulated_contract_ticker_mapper.SimulatedContractTickerMapper[source]#

Bases: ContractTickerMapper

Simulated contract to ticker mapper, which should be used for backtesting purposes. It is a simplified mapper, where both Broker and DataProvider use exactly the same data objects.

contract_to_ticker(contract: Ticker) Ticker[source]#

Maps Contract objects into Tickers.

ticker_to_contract(ticker: Ticker) Ticker[source]#

Maps contract parameters to corresponding ticker.