How to use the hikyuu.gui.data.ImportTdxToH5Task.ImportTdxToH5Task function in hikyuu

To help you get started, we’ve selected a few hikyuu 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 fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
#通达信盘后没有债券数据。另外,如果用Pytdx下载债券数据,
        #每个债券本身的数据很少但债券种类太多占用空间和时间太多,用途较少不再考虑导入
        #if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))
github fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
#if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))
github fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
#    self.quotations.append('future')

        #通达信盘后没有债券数据。另外,如果用Pytdx下载债券数据,
        #每个债券本身的数据很少但债券种类太多占用空间和时间太多,用途较少不再考虑导入
        #if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))
github fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
if self.config['quotation']['fund']:
            self.quotations.append('fund')
        #if self.config['quotation']['future']:
        #    self.quotations.append('future')

        #通达信盘后没有债券数据。另外,如果用Pytdx下载债券数据,
        #每个债券本身的数据很少但债券种类太多占用空间和时间太多,用途较少不再考虑导入
        #if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))
github fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
#每个债券本身的数据很少但债券种类太多占用空间和时间太多,用途较少不再考虑导入
        #if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))
github fasiondog / hikyuu / hikyuu / gui / data / UseTdxImportToH5Thread.py View on Github external
self.quotations.append('fund')
        #if self.config['quotation']['future']:
        #    self.quotations.append('future')

        #通达信盘后没有债券数据。另外,如果用Pytdx下载债券数据,
        #每个债券本身的数据很少但债券种类太多占用空间和时间太多,用途较少不再考虑导入
        #if self.config['quotation']['bond']:
        #    self.quotations.append('bond')

        self.queue = Queue()
        self.tasks = []
        if self.config.getboolean('weight', 'enable', fallback=False):
            self.tasks.append(ImportWeightToSqliteTask(self.queue, sqlite_file_name, dest_dir))
        if self.config.getboolean('ktype', 'day', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', 'DAY', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', 'DAY', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min5', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '5MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '5MIN', self.quotations, src_dir, dest_dir))
        if self.config.getboolean('ktype', 'min', fallback=False):
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SH', '1MIN', self.quotations, src_dir, dest_dir))
            self.tasks.append(ImportTdxToH5Task(self.queue, sqlite_file_name, 'SZ', '1MIN', self.quotations, src_dir, dest_dir))