Administrator
2024-12-31 ad87e069dcdb9c1e5e1763a95174a1d1f55fa27c
third_data/hx_qc_value_util.py
@@ -7,6 +7,7 @@
import time
from huaxin_client import l1_api_client
from log_module.log import logger_debug
from utils import tool
__response_data = {}
@@ -69,6 +70,7 @@
    @param end_date:
    @return:
    """
    logger_debug.info("get_history_k_bars开始")
    load_latest_trade_calendar()
    _count = -1
    start_date = None
@@ -83,6 +85,7 @@
            start_date = __trade_calendar_list[i]
        if _count >= count:
            break
    logger_debug.info(f"get_history_k_bars 获取到开始日期:{start_date}")
    request_id = __base_request("get_history_k_bars", {"start_date": start_date, "end_date": end_date, "code": code})
    return __read_response(request_id)
@@ -153,7 +156,7 @@
def __test():
    time.sleep(5)
    print( get_history_k_bars("000333", count=150))
    print(get_history_k_bars("000333", count=150))
    print(get_previous_trading_date("2024-12-31"))
    print(get_next_trading_date("2024-12-30"))