How to use the backtesting.collector.data_file_manager.read_data_file function in Backtesting

To help you get started, we’ve selected a few Backtesting examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Drakkar-Software / OctoBot / backtesting / collector / data_parser.py View on Github external
def get_file_content(file_name):
        file_content = read_data_file(file_name)
        data_type = get_data_type(file_name)
        if data_type == BacktestingDataFormats.REGULAR_COLLECTOR_DATA:
            return DataCollectorParser.merge_arrays(file_content)
        else:
            raise BacktestingDataFileException(file_name)