{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blofin/json-schema/blofin-get-api-v1-account-positions-response-schema.json",
  "title": "GetApiV1AccountPositionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blofin-account-api-openapi.yml#/components/schemas/GetApiV1AccountPositionsResponse",
  "type": "object",
  "properties": {
    "positionId": {
      "type": "string",
      "description": "Position ID"
    },
    "instId": {
      "type": "string",
      "description": "Instrument ID, e.g. BTC-USDT"
    },
    "instType": {
      "type": "string",
      "description": "Instrument type"
    },
    "marginMode": {
      "type": "string",
      "description": "Margin mode cross isolated"
    },
    "positionSide": {
      "type": "string",
      "description": "Position side long : positions is positive short : positions is positive net (Positive positions means long position and negative positions means short position.)"
    },
    "leverage": {
      "type": "string",
      "description": "Leverage"
    },
    "positions": {
      "type": "string",
      "description": "Quantity of positions"
    },
    "availablePositions": {
      "type": "string",
      "description": "Position that can be closed"
    },
    "averagePrice": {
      "type": "string",
      "description": "Average open price"
    },
    "markPrice": {
      "type": "string",
      "description": "Latest Mark price"
    },
    "marginRatio": {
      "type": "string",
      "description": "Margin ratio"
    },
    "liquidationPrice": {
      "type": "string",
      "description": "Estimated liquidation price"
    },
    "unrealizedPnl": {
      "type": "string",
      "description": "Unrealized profit and loss calculated by mark price."
    },
    "unrealizedPnlRatio": {
      "type": "string",
      "description": "Unrealized profit and loss ratio calculated by mark price."
    },
    "initialMargin": {
      "type": "string",
      "description": "Initial margin requirement, only applicable to cross ."
    },
    "maintenanceMargin": {
      "type": "string",
      "description": "Maintenance margin requirement"
    },
    "realizedPnl": {
      "type": "string",
      "description": "realized profit and loss"
    },
    "createTime": {
      "type": "string",
      "description": "Creation time, Unix timestamp format in milliseconds, e.g. 1597026383085"
    },
    "updateTime": {
      "type": "string",
      "description": "Latest time position was adjusted, Unix timestamp format in milliseconds, e.g. 1597026383085"
    },
    "adl": {
      "type": "string",
      "description": "ADL level"
    }
  }
}