Skip to content

保证金计算错误 #1

Description

@kookalimba
项目 数值
持仓 0.01 BTC
标记价 69,779.7 USDT
仓位价值 697.8 USDT
设置杠杆 2x ✅
初始保证金 (imr) 3.49 USDT
实际杠杆 697.8 / 3.49 = 200x ❌

• 设置杠杆:2x ✅
• 实际保证金:3.49 USDT(应该是 697.8 / 2 = 349 USDT)

结论:这是 OKX 模拟盘服务端 Bug,与 Skill 无关。

使用官方 CLI okx swap leverage 设置 2x 杠杆成功,但 positions 返回的 imr=3.49 USDT,实际杠杆 = 697.8 / 3.49 = 200x。保证金计算错误。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions