{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getchord-xyz/json-schema/getchord-xyz-lp-leader-row-schema.json",
  "title": "LpLeaderRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getchord-xyz-openapi.json#/components/schemas/LpLeaderRow",
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "EVM address, hex, case-insensitive."
    },
    "winRatePct": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "feesUsd": {
      "type": "number",
      "description": ""
    },
    "pools": {
      "type": "integer",
      "description": ""
    },
    "evUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Expected value per position."
    },
    "avgAgeHours": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "avgInvestedUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "avgMonthlyProfitUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": ""
    },
    "windows": {
      "type": "object",
      "properties": {
        "d7": {
          "type": "object",
          "properties": {
            "positions": {
              "type": "integer",
              "description": ""
            },
            "profitUsd": {
              "type": "number",
              "description": ""
            },
            "feesUsd": {
              "type": "number",
              "description": ""
            }
          }
        },
        "d30": {
          "type": "object",
          "properties": {
            "positions": {
              "type": "integer",
              "description": ""
            },
            "profitUsd": {
              "type": "number",
              "description": ""
            },
            "feesUsd": {
              "type": "number",
              "description": ""
            }
          }
        },
        "all": {
          "type": "object",
          "properties": {
            "positions": {
              "type": "integer",
              "description": ""
            },
            "profitUsd": {
              "type": "number",
              "description": ""
            },
            "feesUsd": {
              "type": "number",
              "description": ""
            }
          }
        }
      },
      "description": "Per window: the positions that ended or were last touched in it, the profit they made and the fees they collected over their life."
    },
    "open": {
      "type": "integer",
      "description": ""
    },
    "closed": {
      "type": "integer",
      "description": ""
    },
    "wins": {
      "type": "integer",
      "description": ""
    },
    "firstTs": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unix time, seconds, UTC."
    },
    "lastTs": {
      "type": "integer",
      "description": "Unix time, seconds, UTC."
    },
    "daily": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "profitUsd": {
            "type": "number",
            "description": ""
          }
        }
      },
      "description": "Last 7 days."
    },
    "tokens": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "description": "EVM address, hex, case-insensitive."
          },
          "symbol": {
            "type": [
              "string",
              "null"
            ],
            "description": ""
          },
          "logo": {
            "type": [
              "string",
              "null"
            ],
            "description": ""
          },
          "inUsd": {
            "type": "number",
            "description": ""
          },
          "positions": {
            "type": "integer",
            "description": ""
          }
        }
      },
      "description": "What the wallet provides to, by dollars in."
    },
    "unrealizedUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": "The open positions marked to the chain: value now + every fee (collected and still waiting) + what came out − what went in. Null while one of them has no read of the chain under two hours old, or an event came after its read."
    },
    "totalPnlUsd": {
      "type": [
        "number",
        "null"
      ],
      "description": "The closed positions' profit plus `unrealizedUsd`; null with it."
    }
  }
}