查询用户仓位

查询用户仓位 (鉴权类型:KEYED, 参见接口权限)

请求格式

GET https://api-cloud.bitmart.com/contract/v1/ifcontract/userPositions

请求限制

参见 速率限制详细

请求参数

参数 类型 是否必须 描述
contractID long 合约 ID

解释说明

请求示例

curl https://api-cloud.bitmart.com/contract/v1/ifcontract/userPositions?contractID=1&status=3&offset=0&size=0

响应详情

返回数据格式示例

{
  "code": 1000,
  "trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
  "message": "OK",
  "data": {
    "trades": [
      {
        "order_id": 10116361,
        "trade_id": 10116363,
        "contract_id": 1,
        "deal_price": "16",
        "deal_vol": "10",
        "make_fee": "0.04",
        "take_fee": "0.12",
        "created_at": null,
        "way": 5,
        "fluctuation": "0"
      }
    ]
  }
}

results matching ""

    No results matching ""