def __init__( self, entity_type='stock', exchanges=['sh', 'sz'], entity_ids=None, codes=None, batch_size=10, force_update=True, sleeping_time=0, default_size=2000, real_time=False, fix_duplicate_way='ignore', start_timestamp=None, end_timestamp=None, kdata_use_begin_time=False, level=None, close_hour=15, close_minute=0, one_day_trading_minutes=4 * 60, ) -> None: self.data_schema = get_str_schema('LockedShares') super().__init__('fund', exchanges, entity_ids, codes, batch_size, force_update, sleeping_time, default_size, real_time, fix_duplicate_way, start_timestamp, end_timestamp, close_hour, close_minute, level, kdata_use_begin_time, one_day_trading_minutes) auth(zvt_env['jq_username'], zvt_env['jq_password']) print(f"剩余{get_query_count()['spare'] / 10000}万")
def __init__(self, entity_type='stock', exchanges=['sh', 'sz'], entity_ids=None, codes=None, batch_size=10, force_update=False, sleeping_time=5, default_size=2000, real_time=False, fix_duplicate_way='add', start_timestamp=None, end_timestamp=None, close_hour=0, close_minute=0) -> None: self.data_schema = get_str_schema('DividendDetail') super().__init__(entity_type, exchanges, entity_ids, codes, batch_size, force_update, sleeping_time, default_size, real_time, fix_duplicate_way, start_timestamp, end_timestamp, close_hour, close_minute) # 调用登录函数(激活后使用,不需要用户名密码) loginResult = c.start("ForceLogin=1", '', mainCallback) if (loginResult.ErrorCode != 0): print("login in fail") exit()
def __init__(self, entity_type='stock', exchanges=['sh', 'sz'], entity_ids=None, codes=None, batch_size=10, force_update=False, sleeping_time=5, default_size=2000, real_time=False, fix_duplicate_way='add', start_timestamp=None, end_timestamp=None, close_hour=0, close_minute=0) -> None: self.data_schema = get_str_schema('DividendDetail') super().__init__(entity_type, exchanges, entity_ids, codes, batch_size, force_update, sleeping_time, default_size, real_time, fix_duplicate_way, start_timestamp, end_timestamp, close_hour, close_minute) auth(zvt_env['jq_username'], zvt_env['jq_password'])