{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blofin/json-schema/blofin-get-api-v1-account-positions-history-response-schema.json",
  "title": "GetApiV1AccountPositionsHistoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blofin-account-api-openapi.yml#/components/schemas/GetApiV1AccountPositionsHistoryResponse",
  "type": "object",
  "properties": {
    "historyId": {
      "type": "string",
      "description": "History ID"
    },
    "positionId": {
      "type": "string",
      "description": "Position ID"
    },
    "instId": {
      "type": "string",
      "description": "Instrument ID, e.g. BTC-USDT"
    },
    "instType": {
      "type": "string",
      "description": "Instrument type"
    },
    "side": {
      "type": "string",
      "description": "Position side, buy or sell"
    },
    "marginMode": {
      "type": "string",
      "description": "Margin mode cross isolated"
    },
    "positionSide": {
      "type": "string",
      "description": "Position side long short net"
    },
    "closePositions": {
      "type": "string",
      "description": "Closed position quantity"
    },
    "maxPositions": {
      "type": "string",
      "description": "Maximum position quantity"
    },
    "liquidationPositions": {
      "type": "string",
      "description": "Liquidation position quantity"
    },
    "openAveragePrice": {
      "type": "string",
      "description": "Average open price"
    },
    "closeAveragePrice": {
      "type": "string",
      "description": "Average close price"
    },
    "createTime": {
      "type": "string",
      "description": "Creation time, Unix timestamp format in milliseconds, e.g. 1597026383085"
    },
    "updateTime": {
      "type": "string",
      "description": "Update time, Unix timestamp format in milliseconds, e.g. 1597026383085"
    },
    "leverage": {
      "type": "string",
      "description": "Leverage"
    },
    "realizedPnl": {
      "type": "string",
      "description": "Realized profit and loss"
    },
    "realizedPnlRatio": {
      "type": "string",
      "description": "Realized profit and loss ratio"
    },
    "fee": {
      "type": "string",
      "description": "Trading fee"
    }
  }
}