def get_stock_valuation_data(provider: Provider, sleep, desc, pc, lock, region, batch): # 个股估值数据 StockValuation.record_data(provider=provider, share_para=(desc, pc, lock, True, region), sleeping_time=sleep, batch_size=batch)
def record_valuation(): while True: email_action = EmailInformer() try: StockValuation.record_data(provider='joinquant', sleeping_time=0, day_data=True) email_action.send_message(zvt_config['email_username'], 'joinquant record valuation finished', '') break except Exception as e: msg = f'joinquant record valuation error:{e}' logger.exception(msg) email_action.send_message(zvt_config['email_username'], 'joinquant record valuation error', msg) time.sleep(60)