{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0xinsider-com/json-schema/0xinsider-com-counterparty-maker-page-schema.json",
  "title": "CounterpartyMakerPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0xinsider-com-large-trades-api-openapi.yml#/components/schemas/CounterpartyMakerPage",
  "type": "object",
  "required": [
    "analysis_id",
    "snapshot_id",
    "execution_id",
    "items"
  ],
  "properties": {
    "analysis_id": {
      "type": "string"
    },
    "snapshot_id": {
      "type": "string"
    },
    "execution_id": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CounterpartyParticipant"
      }
    },
    "next_cursor": {
      "type": "string",
      "description": "Cursor bound to the analysis, execution, last full-denominator share total, and wallet."
    }
  },
  "$defs": {
    "CounterpartyMatchBreakdown": {
      "type": "object",
      "required": [
        "match_type",
        "maker_fill_count",
        "filled_shares"
      ],
      "properties": {
        "match_type": {
          "type": "string",
          "enum": [
            "COMPLEMENTARY",
            "MINT",
            "MERGE"
          ]
        },
        "maker_fill_count": {
          "type": "integer"
        },
        "filled_shares": {
          "type": "string",
          "description": "Exact decimal shares."
        }
      }
    },
    "CounterpartyParticipant": {
      "type": "object",
      "required": [
        "counterparty_key",
        "execution_wallet",
        "identity_status",
        "maker_fill_count",
        "filled_shares",
        "filled_usdc",
        "share_pct",
        "match_breakdown"
      ],
      "properties": {
        "counterparty_key": {
          "type": "string"
        },
        "execution_wallet": {
          "type": "string",
          "description": "Lowercase Polygon wallet from the exact OrderFilled log."
        },
        "identity_status": {
          "type": "string",
          "enum": [
            "resolved",
            "infrastructure",
            "unavailable"
          ]
        },
        "resolved_user_id": {
          "type": "string"
        },
        "wallet_family": {
          "type": "string"
        },
        "resolution_block": {
          "type": "integer"
        },
        "resolution_source": {
          "type": "string"
        },
        "display_name": {
          "type": "string"
        },
        "grade": {
          "type": "string"
        },
        "last_traded_at": {
          "type": "string",
          "format": "date-time",
          "description": "Latest nonfuture recorded wallet-wide trade time for the tracked trader supplying this participant's grade. Omitted when unavailable; not the receipt time or the owner EOA's activity. Trader context is read with the response and is not frozen by execution membership snapshots."
        },
        "profile_segment": {
          "type": "string",
          "description": "0xinsider profile path segment for this participant, present only when the execution wallet has a tracked trader: `@<username>` when that username resolves to the trader alone, otherwise the trader's lowercase wallet. Percent-encode the part after `@` and append to `https://0xinsider.com/profile/`."
        },
        "maker_fill_count": {
          "type": "integer"
        },
        "filled_shares": {
          "type": "string",
          "description": "Exact decimal shares."
        },
        "filled_usdc": {
          "type": "string",
          "description": "Exact decimal USDC amount."
        },
        "share_pct": {
          "type": "string",
          "description": "Participant share of the exact execution, from 0 through 100."
        },
        "match_breakdown": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CounterpartyMatchBreakdown"
          }
        }
      }
    }
  }
}