(
config,
tentacles_setup_config,
data_files,
data_file_path=constants.BACKTESTING_FILE_PATH,
join_backtesting_timeout=constants.BACKTESTING_DEFAULT_JOIN_TIMEOUT,
run_on_common_part_only=True,
start_timestamp=None,
end_timestamp=None,
enable_logs=True,
stop_when_finished=False,
name=None,
enforce_total_databases_max_size_after_run=True,
enable_storage=True,
run_on_all_available_time_frames=False,
backtesting_data=None,
config_by_tentacle=None,
services_config=None
)
| 19 | |
| 20 | |
| 21 | def create_independent_backtesting( |
| 22 | config, |
| 23 | tentacles_setup_config, |
| 24 | data_files, |
| 25 | data_file_path=constants.BACKTESTING_FILE_PATH, |
| 26 | join_backtesting_timeout=constants.BACKTESTING_DEFAULT_JOIN_TIMEOUT, |
| 27 | run_on_common_part_only=True, |
| 28 | start_timestamp=None, |
| 29 | end_timestamp=None, |
| 30 | enable_logs=True, |
| 31 | stop_when_finished=False, |
| 32 | name=None, |
| 33 | enforce_total_databases_max_size_after_run=True, |
| 34 | enable_storage=True, |
| 35 | run_on_all_available_time_frames=False, |
| 36 | backtesting_data=None, |
| 37 | config_by_tentacle=None, |
| 38 | services_config=None |
| 39 | ) -> backtesting.independent_backtesting.IndependentBacktesting: |
| 40 | return backtesting.independent_backtesting.IndependentBacktesting( |
| 41 | config, tentacles_setup_config, data_files, |
| 42 | data_file_path, |
| 43 | run_on_common_part_only=run_on_common_part_only, |
| 44 | join_backtesting_timeout=join_backtesting_timeout, |
| 45 | start_timestamp=start_timestamp, |
| 46 | end_timestamp=end_timestamp, |
| 47 | enable_logs=enable_logs, |
| 48 | stop_when_finished=stop_when_finished, |
| 49 | name=name, |
| 50 | enforce_total_databases_max_size_after_run=enforce_total_databases_max_size_after_run, |
| 51 | enable_storage=enable_storage, |
| 52 | run_on_all_available_time_frames=run_on_all_available_time_frames, |
| 53 | backtesting_data=backtesting_data, |
| 54 | config_by_tentacle=config_by_tentacle, |
| 55 | services_config=services_config, |
| 56 | ) |
| 57 | |
| 58 | |
| 59 | async def initialize_and_run_independent_backtesting(independent_backtesting, log_errors=True) -> None: |
no outgoing calls
no test coverage detected