Administrator
2023-09-15 403f53e86f04ce0efb285d5d60c8519ab8ce1e15
注释下单阻止
4个文件已修改
14 ■■■■■ 已修改文件
l2/cancel_buy_strategy.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
test/test.py 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/huaxin_util.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py
@@ -459,6 +459,7 @@
        total_num = 0
        # 获取m值数据
        thresh_hold_money = l2_trade_factor.L2PlaceOrderParamsManager.get_base_m_val(code)
        thresh_hold_money = thresh_hold_money * 2
        thresh_hold_num = thresh_hold_money // (float(gpcode_manager.get_limit_up_price(code)) * 100)
        end_index = real_place_order_index + 1
        for i in range(real_place_order_index + 1, total_datas[-1]["index"]):
l2/l2_data_manager_new.py
@@ -808,7 +808,7 @@
            # 判断成交进度是否距离我们的位置很近
            total_data = local_today_datas.get(code)
            trade_index, is_default = cls.__TradeBuyQueue.get_traded_index(code)
            if not is_default and trade_index:
            if False and not is_default and trade_index:
                not_cancel_num = 0
                num_operate_map = local_today_num_operate_map.get(code)
                for i in range(trade_index + 1, total_data[-1]["index"] + 1):
test/test.py
@@ -15,8 +15,8 @@
if __name__ == "__main__":
    test1 = []
    test1.append()
    test1 = test1[0:13]
    print(test1)
    _queue = queue.Queue()
    _queue.put("123123")
    print(_queue.get(False))
    print(_queue.get(False))
utils/huaxin_util.py
@@ -1,4 +1,5 @@
# 报单状态
import random
import threading
from utils import tool
@@ -63,7 +64,7 @@
    __order_ref_lock.acquire()
    try:
        global __public_order_ref
        __public_order_ref += 1
        __public_order_ref += random.randint(1, 20)
        return __public_order_ref
    finally:
        __order_ref_lock.release()