Administrator
8 天以前 418e54d6c6a4b3b4aaab9ef545cdcd458640a7f5
third_data/history_k_data_manager.py
@@ -15,6 +15,17 @@
from utils import tool, init_data_util
def update_history_k_bars_of_code(code, force=True):
    try:
        datas = init_data_util.get_volumns_by_code(code, 150)
        if datas:
            HistoryKDataManager().save_history_bars(code, datas[0]['bob'].strftime("%Y-%m-%d"), datas,
                                                    force=force)
        return datas
    except Exception as e:
        logger_debug.exception(e)
def update_history_k_bars(force=False):
    """
    更新历史K线