跟踪聚宽策略时买入信号 price价格是字符串 然后报错了
Author: zhyblackCreated Mar 16, 2026Updated Mar 16, 2026
`2026-03-16 19:24:40,174 [INFO] follower.py 202: *********** 动作: buy 数量: 5300 价格: 2.868 信号产生时间: *********** Traceback (most recent call last):
.venv\Lib\site-packages\easytrader\follower.py", line 281, in _execute_trade_cmd if not self._is_number(price) or price <= 0: ^^^^^^^^^^ TypeError: '<=' not supported between instances of 'str' and 'int' `
Source: shidenggui/easytrader