跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt

Use this file to discover all available pages before exploring further.

查询仓位风险信息 (KEYED)

适用于查询指定合约或者全部合约的仓位风险信息

请求URL

GET https://cloud-api.wooxpro.com/contract/private/position-risk

请求限制

参见 速率限制详细

请求参数

请求
curl -H 'X-BM-KEY:{{AccessKey}}'
https://cloud-api.wooxpro.com/contract/private/position-risk?symbol=BTCUSDT
参数类型是否必填描述
symbolString选填合约交易对(如BTCUSDT)
accountString选填交易用户
-futures=合约主账号
-copy_trading=跟单子账号

响应详情

响应
{
  "code": 1000,
  "message": "Ok",
  "data": [
    {
      "symbol":"BTCUSDT",
      "position_amt":"1",
      "mark_price":"67957.7",
      "unrealized_profit":"969.6",
      "liquidation_price":"64245",
      "leverage":"20",
      "max_notional_value":"3000000",
      "margin_type":"Isolated",
      "isolated_margin":"3078.51948691",
      "position_side":"Long",
      "notional":"66988.1",
      "update_time":1712390438,
      "account": "futures"
    }
  ],
  "trace": "ae96cae5-1f09-4ea5-971e-4474a6724bc8"
}
字段类型描述
symbolString合约名称
position_amtString仓位数量
mark_priceString标记价格
unrealized_profitString未实现盈亏
liquidation_priceString强平价
leverageString当前杠杆
max_notional_valueString当前最大可持仓价值
margin_typeString仓位保证金类型
-Cross
-Isolated
isolated_marginString逐仓保证金
position_sideString仓位方向
-Long
-Short
notionalString仓位净值
accountString交易用户
-futures=合约主账号
-copy_trading=跟单子账号
update_timeLong仓位更新时间(ms)