跳到主要内容

我的持仓

GET /v1/positions/me

调用者所有非零持仓,按 symbol 排序。无持仓返回 []。

鉴权:Authorization: Bearer <session_token>(见 下单)。调用者即会话对应的用户,没有 user_id 参数。limit / status query 参数会被接受但忽略。

请求

GET /v1/positions/me
Authorization: Bearer <session_token>

响应 — 200

[
{
"user_id": "5cfb031b-5936-4467-9533-cd2df576dbb8",
"symbol": "BTC-PERP",
"qty": "0.001",
"entry_price": "76500.00",
"locked_margin": "7.65",
"realized_pnl": "0.5234",
"take_profit_price": "78000",
"stop_loss_price": null,
"liquidation_price": "69195.9798995",
"funding": "-0.0096",
"leverage": 10
}
]
字段类型说明
take_profit_price / stop_loss_pricestring 或 null该持仓已挂起的 TP/SL 触发价;未挂时为 null。
liquidation_pricestring 或 null逐仓估算强平价(维持保证金率 0.5%);无正解时为 null。
fundingstring该 symbol 上累计收到的资金费(负数 = 已支付)。
leverageinteger持仓实际使用的杠杆。

错误(响应体为纯文本):401 缺少 / 无效的 session token、500 DB 错误。