Skip to content

跟踪聚宽策略时买入信号 price价格是字符串 然后报错了 #523

@zhyblack

Description

@zhyblack

`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'
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions