Administrator
2023-11-15 4062c0d9d4b7bc8e1d9e866a86c98db5c51f4fa0
l2/cancel_buy_strategy.py
@@ -576,6 +576,7 @@
    # 设置成交进度
    def set_transaction_index(self, code, buy_single_index, index):
        try:
            # 每3s或者成交进度变化就囊括一次
            if index == self.__transaction_progress_index_dict.get(code):
                if code in self.__transaction_progress_index_updatetime_dict and time.time() - self.__transaction_progress_index_updatetime_dict.get(
                        code) < 3:
@@ -820,7 +821,7 @@
                    if temp_rate > 3:
                        temp_rate = 3
                    deal_rate = round((temp_rate * 3.5 - 2.5) / 100, 4) if is_up else round(
                        (temp_rate * 10.5 - 7.5) / 100, 4)
                        (temp_rate * 5.25 - 3.75) / 100, 4)
            base_rate += block_rate
            base_rate += deal_rate