Administrator
2023-11-07 a5eaa98f55e665de19564022993503d9427d74c8
l2/l2_data_manager.py
@@ -19,7 +19,8 @@
    # mode: 0-普通交易  1-快速交易
    def __init__(self, buy_single_index=None, buy_exec_index=-1, buy_compute_index=None, num=0, count=0,
                 max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0):
                 max_num_set=None, buy_volume_rate=None, sell_info=None, threshold_money=None, mode=0,
                 at_limit_up=False):
        self.buy_single_index = buy_single_index
        self.buy_exec_index = buy_exec_index
        self.buy_compute_index = buy_compute_index
@@ -33,6 +34,8 @@
        self.buy_volume_rate = buy_volume_rate
        self.sell_info = sell_info
        self.mode = mode
        # 是否是板上买
        self.at_limit_up = at_limit_up
    def get_max_num_set(self):
        if self.max_num_set:
@@ -205,5 +208,5 @@
                                                                              buy_volume_rate=0.6,
                                                                              mode=OrderBeginPosInfo.MODE_NORMAL,
                                                                              ))
    print( TradePointManager().get_buy_compute_start_data_cache(code).max_num_set)
    print(TradePointManager().get_buy_compute_start_data_cache(code).max_num_set)
    RedisUtils.run_loop()