Administrator
2024-05-27 26f288e11e1c890d0711db498d77fe60eaa8a8e6
l2/cancel_buy_strategy.py
@@ -271,16 +271,13 @@
        """
        max60, yesterday = code_volumn_manager.get_histry_volumn(code)
        if max60:
            num = max60[0]
            limit_up_price = gpcode_manager.get_limit_up_price(code)
            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:
                    # 10点前下单打7折
                    money = int(money * 0.7)
                count = int(money_y * 10) // 10 + 3
                return money, count
            money_y = code_volumn_manager.get_reference_volume_as_money_y(code)
            money = int(200 * money_y + 280)
            if tool.trade_time_sub(place_order_time_str, "10:00:00") <= 0:
                # 10点前下单打7折
                money = int(money * 0.7)
            count = int(money_y * 10) // 10 + 3
            return money, count
        # 默认值
        return 300, 3