Administrator
2024-01-30 4aaff9886536c07976a0d83e94448ec1bbdbbd17
添加卖规则触发日志
1个文件已修改
6 ■■■■■ 已修改文件
trade/huaxin/huaxin_trade_server.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
trade/huaxin/huaxin_trade_server.py
@@ -312,8 +312,10 @@
                                    if r.buy1_volume >= buy1_volume:
                                        # 量价触发
                                        can_excute = True
                                        async_log_util.info(logger_trade, f"触发卖规则:量触发{buy1_volume}/{r.buy1_volume}")
                                else:
                                    can_excute = True
                                    async_log_util.info(logger_trade, f"触发卖规则:价格触发{buy1_price}/{r.buy1_price}")
                                    # 价格触发
                                # 获取价格类型
                                if not can_excute:
@@ -336,8 +338,8 @@
                                                                limit_down_price,
                                                                buy1_price)
                                    SellRuleManager().excute_sell(r.id_)
                                except:
                                    pass
                                except Exception as e:
                                    logger_debug.exception(e)
                                finally:
                                    SellRuleManager().release_sell_lock(r.id_)