Skip to content

指标策略本地账簿与实际持仓不一致 #165

Description

@zongwei-wu

Describe the bug

Image

希望能增加同步实际持仓功能。
实际上持仓已经在上次交易中平仓,但账簿仍然记录着历史开仓记录。

导致出现的问题是:
因账本原因可能导致策略误判,一直调用平仓且失败。
响应错误信息:Gate: Gate HTTP 400 - {"label":"REDUCE_EXCEEDED","message":"empty position"}

Steps to reproduce

/strategy-live?tab=strategy
策略列表-当前持仓

Expected behavior

No response

Deployment method

Docker Compose

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions