SimulatedContractTickerMapper¶
-
class
qf_lib.backtesting.contract.contract_to_ticker_conversion.simulated_contract_ticker_mapper.
SimulatedContractTickerMapper
[source]¶ Bases:
qf_lib.backtesting.contract.contract_to_ticker_conversion.base.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.
Methods
contract_to_ticker
(contract)Maps Contract objects into Tickers.
ticker_to_contract
(ticker)Maps contract parameters to corresponding ticker.
-
contract_to_ticker
(contract: qf_lib.common.tickers.tickers.Ticker) → qf_lib.common.tickers.tickers.Ticker[source]¶ Maps Contract objects into Tickers.
-
ticker_to_contract
(ticker: qf_lib.common.tickers.tickers.Ticker) → qf_lib.common.tickers.tickers.Ticker[source]¶ Maps contract parameters to corresponding ticker.
-