Administrator
2024-04-30 e849992da98b5c799778c008e4f1fa61969081a9
F撤bug修改
1个文件已修改
6 ■■■■ 已修改文件
l2/cancel_buy_strategy.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/cancel_buy_strategy.py
@@ -1743,9 +1743,9 @@
            if limit_up_price:
                money_y = round((num * float(limit_up_price)) / 1e8, 1)
                money = int(200 * money_y + 280)
                if tool.trade_time_sub(place_order_time_str,"10:00:00") <= 0:
                if tool.trade_time_sub(place_order_time_str, "10:00:00") <= 0:
                    # 10点前下单打7折
                    money = int(money*0.7)
                    money = int(money * 0.7)
                count = int(money_y * 10) // 10 + 3
                return money, count
        # 默认值
@@ -1776,7 +1776,7 @@
        if tool.trade_time_sub(tool.get_now_time_str(), total_datas[real_order_index]['val']['time']) > 1 * 60:
            return False, "下单超过60s"
        THRESHOLD_MONEY_W, THRESHOLD_COUNT = self.__get_fast_deal_threshold_value(code)
        THRESHOLD_MONEY_W, THRESHOLD_COUNT = self.__get_fast_deal_threshold_value(code, total_datas[real_order_index]['val']['time'])
        total_left_count = 0
        total_left_num = 0