Administrator
2024-12-31 2ccd2ee1112ee84f5139fc5b8cf2ce070f8f991e
api/outside_api_command_callback.py
@@ -487,7 +487,7 @@
        try:
            fdata = {}
            try:
                date = HistoryKDatasUtils.get_previous_trading_date(tool.get_now_date_str())
                date = HistoryKDatasUtils.get_trading_dates(tool.date_sub(tool.get_now_date_str(), 10) ,tool.get_now_date_str())
                if date:
                    fdata["juejin"] = 1
            except Exception as e:
@@ -545,6 +545,7 @@
            # 获取今日K线的更新数量
            try:
                dates = HistoryKDatasUtils.get_latest_trading_date_cache(5)
                logger_debug.info(f"获取到的交易日:{dates}")
                latest_trading_date = None
                if dates:
                    latest_trading_date = dates[0]
@@ -552,6 +553,7 @@
                    raise Exception("没有获取到上一个交易日的日期")
                codes = HistoryKDataManager().get_history_bars_codes(latest_trading_date)
                count = len(codes)
                logger_debug.info(f"K线代码数量:{count}")
                fdata["today_history_k_bar_count"] = count
            except Exception as e:
                logger_debug.exception(e)