获取持仓列表
获取持仓列表
获取持仓列表
限频:每秒 1 次
请求地址
GET /deepcoin/account/positions
请求参数
字段名 | 是否必填 | 类型 | 字段描述 |
---|---|---|---|
instType | 是 | string | 产品类型 合约: SWAP 现货: SPOT |
instId | 否 | string | 产品 ID |
响应参数
字段名 | 类型 | 字段描述 |
---|---|---|
instType | string | 产品类型 现货展示为: SPOT |
mgnMode | string | 保障模式: cross=全仓 现货展示为: cash |
instId | string | 产品 ID |
posId | string | 订单 ID |
posSide | string | 持仓方向 多: long 空: short 现货展示空 |
pos | string | 持仓数量 单位: 张 |
avgPx | string | 开仓均价 现货展示为:买入均价 |
lever | string | 杠杆大小 现货展示空 |
liqPx | string | 强平价 现货展示空 |
useMargin | string | 占用保证金 现货展示空 |
mrgPosition | string | 合约仓位类型 合仓: merge 分仓: split 现货展示为空 |
ccy | string | 占用保证金币种 |
uTime | string | 持仓创建时间,Unix 时间戳格式的毫秒数格式 |
cTime | string | 最近一次持仓更新时间,Unix 时间戳格式的毫秒数格式 |
响应示例
{
"code": "0",
"msg": "",
"data": [
{
"instType": "SWAP",
"mgnMode": "cross",
"instId": "BTC-USDT-SWAP",
"posId": "1000587858872759",
"posSide": "long",
"pos": "200",
"avgPx": "97603",
"lever": "1",
"liqPx": "0.1",
"useMargin": "19520.6",
"mrgPosition": "split",
"ccy": "USDT",
"uTime": "1739243187000",
"cTime": "1739243187000"
}
]
}