{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/woox/json-schema/woox-get-positions-response-schema.json",
  "title": "GetPositionsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/woox-futures-api-openapi.yml#/components/schemas/GetPositionsResponse",
  "allOf": [
    {
      "$ref": "#/$defs/CommonResponse"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "symbol": {
                    "type": "string",
                    "description": "The trading pair symbol, e.g., PERP_BTC_USDT."
                  },
                  "holding": {
                    "type": "string",
                    "description": "The current holding quantity of the asset in the position."
                  },
                  "positionSide": {
                    "type": "string",
                    "description": "The position side, such as 'BOTH' for a long and short position.",
                    "enum": [
                      "BOTH",
                      "LONG",
                      "SHORT"
                    ]
                  },
                  "pendingLongQty": {
                    "type": "string",
                    "description": "The pending quantity for a long position."
                  },
                  "pendingShortQty": {
                    "type": "string",
                    "description": "The pending quantity for a short position."
                  },
                  "settlePrice": {
                    "type": "string",
                    "description": "The price at which the position will be settled."
                  },
                  "averageOpenPrice": {
                    "type": "string",
                    "description": "The average price at which the position was opened."
                  },
                  "pnl24H": {
                    "type": "string",
                    "description": "The profit and loss (PnL) for the position in the last 24 hours."
                  },
                  "fee24H": {
                    "type": "string",
                    "description": "The total fee for the position in the last 24 hours."
                  },
                  "markPrice": {
                    "type": "string",
                    "description": "The mark price of the position."
                  },
                  "estLiqPrice": {
                    "type": "string",
                    "description": "The estimated liquidation price of the position."
                  },
                  "adlQuantile": {
                    "type": "integer",
                    "description": "The ADL quantile, a risk management factor."
                  },
                  "timestamp": {
                    "type": "integer",
                    "format": "int64",
                    "description": "The timestamp of the position data in Unix epoch time (milliseconds)."
                  }
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "CommonResponse": {
      "type": "object",
      "properties": {
        "success": {
          "type": "boolean",
          "description": "true"
        },
        "timestamp": {
          "type": "integer",
          "description": "timestamp"
        }
      }
    }
  }
}