Skip to content

API responsed positions size mismatch with actual -- workaround needed #13

Description

@ChristopherXue

Error logs:

ERROR: [BACKPACK_SOL] Position mismatch detected
###### ERROR ###### ERROR ###### ERROR ###### ERROR #####
Please manually rebalance your position and take-profit orders
请手动平衡当前仓位和正在关闭的仓位
current position: 108.25 | active closing amount: 0 | Order quantity: 0
###### ERROR ###### ERROR ###### ERROR ###### ERROR #####

Actually positions:

2025-09-25 10:29:26.866 - INFO - [BACKPACK_SOL] =============================
2025-09-25 10:29:27.395 - INFO - [BACKPACK_SOL] Subscribed to order updates for SOL_USDC_PERP
2025-09-25 10:29:30.147 - INFO - [BACKPACK_SOL] Current Position: 108.25 | Active closing amount: 108.25 | Order quantity: 60

position 返回值错误(实际108.25,但是返回值是0)就会kill 进程,建议增加retry 机制避免因为api return错误值而关掉进程。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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