Get User Positions

Get user positions (Authentication type: KEYED, See Interface Permission)

Request Format

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

Request Limit

See Detailed Rate Limit

Request Parameter

Field Type Required? Description
contractID long Yes Contract ID

Instruction

Request example

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

Response Data

Example of returned data format

{
  "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 ""