{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrithm-com/json-schema/coinrithm-com-public-notable-large-trades-response-schema.json",
  "title": "PublicNotableLargeTradesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrithm-com-public-market-data-api-openapi.yml#/components/schemas/PublicNotableLargeTradesResponse",
  "type": "object",
  "required": [
    "version",
    "generatedAt",
    "statsAsOf",
    "rules",
    "candidatesTruncated",
    "totalNotable",
    "count",
    "items",
    "source"
  ],
  "properties": {
    "version": {
      "type": "integer",
      "description": "Response schema version (1)."
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "statsAsOf": {
      "type": "string",
      "format": "date-time",
      "description": "When the per-market distributions were computed (recomputed at most every 10 minutes)."
    },
    "rules": {
      "type": "object",
      "additionalProperties": true,
      "description": "The selection rules in force.",
      "properties": {
        "candidateHours": {
          "type": "integer",
          "description": "Candidate prints come from this recent window."
        },
        "statsWindowHours": {
          "type": "number",
          "description": "Hours of history behind the distributions (up to 168)."
        },
        "classFloorsUsd": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "Minimum notional by class (`btcEth`, `crypto`, `commodity`, `index`, `equity`, `fx`)."
        },
        "minSymbolTrades": {
          "type": "integer",
          "description": "Prints a market needs in the window before its p99.9 is used."
        },
        "smallHistoryMultiple": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "Class-floor multiple for markets with less history."
        },
        "smallHistoryP50Multiple": {
          "type": "number"
        },
        "burstGapSeconds": {
          "type": "integer"
        }
      }
    },
    "candidatesTruncated": {
      "type": "boolean",
      "description": "True when the candidate row cap was reached."
    },
    "totalNotable": {
      "type": "integer",
      "description": "Notable bursts before `limit`."
    },
    "count": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "description": "Newest burst first.",
      "items": {
        "$ref": "#/$defs/PublicNotableLargeTrade"
      }
    },
    "source": {
      "$ref": "#/$defs/PublicMarketFeedSource"
    }
  },
  "$defs": {
    "PublicLargeTradeLinks": {
      "type": "object",
      "required": [
        "market",
        "buyer",
        "seller",
        "tx"
      ],
      "properties": {
        "market": {
          "type": "string",
          "format": "uri",
          "description": "The venue's market page."
        },
        "buyer": {
          "type": [
            "string",
            "null"
          ],
          "description": "Explorer page of the buyer address (Hyperliquid only)."
        },
        "seller": {
          "type": [
            "string",
            "null"
          ],
          "description": "Explorer page of the seller address (Hyperliquid only)."
        },
        "tx": {
          "type": [
            "string",
            "null"
          ],
          "description": "Explorer page of the transaction (Hyperliquid only)."
        }
      }
    },
    "PublicLargeTradeTaker": {
      "type": "object",
      "description": "The taker side of a Hyperliquid print, matched from the taker\nwallet's own fills. `positionNow` is the wallet's position in that\nmarket when the row was enriched, which can be after the print.\n",
      "required": [
        "address",
        "action",
        "dir",
        "filledQty",
        "realizedPnlUsd",
        "feeUsd",
        "positionNow"
      ],
      "properties": {
        "address": {
          "type": "string",
          "description": "Taker wallet, lower-case 0x address."
        },
        "action": {
          "type": "string",
          "description": "What the print did to the taker's position: `open`, `add`,\n`reduce`, `close` or `flip` (crossed from long to short or back).\nTreat other values as unknown.\n"
        },
        "dir": {
          "type": [
            "string",
            "null"
          ],
          "description": "Hyperliquid's own direction text for the fills, e.g. `Open Long`,\n`Close Short`, or a joined value such as `Close Short / Short >\nLong / Open Long` when one transaction did several things.\n"
        },
        "filledQty": {
          "type": [
            "number",
            "null"
          ],
          "description": "Size the taker filled, in base units."
        },
        "realizedPnlUsd": {
          "type": [
            "number",
            "null"
          ],
          "description": "Realized PnL of the taker's fills in USD on a reduce, close or flip; null on open and add."
        },
        "feeUsd": {
          "type": [
            "number",
            "null"
          ],
          "description": "Fees the taker paid on these fills, USD."
        },
        "positionNow": {
          "description": "The wallet's position in this market at `asOf`; null when not read.",
          "anyOf": [
            {
              "$ref": "#/$defs/PublicLargeTradeTakerPosition"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "PublicLargeTradeTakerPosition": {
      "type": "object",
      "required": [
        "size",
        "avgEntryPrice",
        "leverage",
        "liquidationPrice",
        "unrealizedPnlUsd",
        "asOf"
      ],
      "properties": {
        "size": {
          "type": [
            "number",
            "null"
          ],
          "description": "Signed position size in base units (negative is short); 0 when flat."
        },
        "avgEntryPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "leverage": {
          "type": [
            "number",
            "null"
          ]
        },
        "liquidationPrice": {
          "type": [
            "number",
            "null"
          ]
        },
        "unrealizedPnlUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "asOf": {
          "type": "string",
          "format": "date-time",
          "description": "When the position was read."
        }
      }
    },
    "PublicMarketFeedSource": {
      "type": "object",
      "required": [
        "provider",
        "venues",
        "method"
      ],
      "properties": {
        "provider": {
          "type": "string"
        },
        "venues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PublicMarketFeedVenue"
          }
        },
        "method": {
          "type": "string",
          "description": "How rows are selected and valued."
        },
        "coverage": {
          "type": "string",
          "description": "Which markets are collected, and the gap caveat."
        }
      }
    },
    "PublicMarketFeedVenue": {
      "type": "object",
      "required": [
        "venue",
        "name",
        "url",
        "feed"
      ],
      "properties": {
        "venue": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "feed": {
          "type": "string",
          "description": "The venue's public feed the collector reads."
        },
        "note": {
          "type": "string",
          "description": "Venue-specific coverage limitation, when published."
        }
      }
    },
    "PublicNotableLargeTrade": {
      "type": "object",
      "description": "One burst: notable prints of the same venue, symbol and side at most\n60 seconds apart. Identity, addresses and links are the largest\nprint's; sizes are summed over the burst.\n",
      "required": [
        "id",
        "venue",
        "symbol",
        "base",
        "assetClass",
        "side",
        "notionalUsd",
        "qty",
        "avgPrice",
        "fills",
        "trades",
        "firstTime",
        "lastTime",
        "largestTrade",
        "buyer",
        "seller",
        "sourceRef",
        "links",
        "significance"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The largest print's row id (`venue:symbol:tradeId`)."
        },
        "venue": {
          "type": "string"
        },
        "symbol": {
          "type": "string"
        },
        "base": {
          "type": "string"
        },
        "assetClass": {
          "type": "string"
        },
        "side": {
          "type": "string",
          "description": "Taker side: `buy` or `sell`."
        },
        "notionalUsd": {
          "type": "number",
          "description": "Summed over the burst."
        },
        "qty": {
          "type": "number"
        },
        "avgPrice": {
          "type": "number"
        },
        "fills": {
          "type": "integer"
        },
        "trades": {
          "type": "integer",
          "description": "Prints in the burst."
        },
        "firstTime": {
          "type": "string",
          "format": "date-time"
        },
        "lastTime": {
          "type": "string",
          "format": "date-time"
        },
        "largestTrade": {
          "type": "object",
          "required": [
            "tradeId",
            "notionalUsd",
            "price",
            "qty",
            "tradeTime"
          ],
          "properties": {
            "tradeId": {
              "type": "string"
            },
            "notionalUsd": {
              "type": "number"
            },
            "price": {
              "type": "number"
            },
            "qty": {
              "type": "number"
            },
            "tradeTime": {
              "type": "string",
              "format": "date-time"
            }
          }
        },
        "buyer": {
          "type": [
            "string",
            "null"
          ]
        },
        "seller": {
          "type": [
            "string",
            "null"
          ]
        },
        "sourceRef": {
          "type": [
            "string",
            "null"
          ],
          "description": "Venue reference of the largest print (Hyperliquid transaction hash)."
        },
        "links": {
          "$ref": "#/$defs/PublicLargeTradeLinks"
        },
        "significance": {
          "$ref": "#/$defs/PublicNotableLargeTradeSignificance"
        },
        "taker": {
          "description": "The largest print's taker (same shape as on GET\n/api/market/large-trades). Null on Binance and on a Hyperliquid\nprint not enriched yet or without a match.\n",
          "anyOf": [
            {
              "$ref": "#/$defs/PublicLargeTradeTaker"
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "PublicNotableLargeTradeSignificance": {
      "type": "object",
      "description": "The largest print against its own market's distribution.",
      "required": [
        "windowHours",
        "symbolTrades",
        "p50Usd",
        "p99Usd",
        "p999Usd",
        "maxUsd",
        "multipleOfP999",
        "isLargestInWindow",
        "rankInWindow",
        "thresholdUsd",
        "basis"
      ],
      "properties": {
        "windowHours": {
          "type": "number"
        },
        "symbolTrades": {
          "type": "integer",
          "description": "Prints of this venue and symbol in the window."
        },
        "p50Usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "p99Usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "p999Usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxUsd": {
          "type": [
            "number",
            "null"
          ]
        },
        "multipleOfP999": {
          "type": [
            "number",
            "null"
          ]
        },
        "isLargestInWindow": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Null only for a market newer than the cached distributions."
        },
        "rankInWindow": {
          "type": [
            "integer",
            "null"
          ],
          "description": "1 + prints strictly larger in the window; null when not exact."
        },
        "thresholdUsd": {
          "type": "number",
          "description": "The bar this print cleared."
        },
        "basis": {
          "type": "string",
          "description": "`p999` (the market's p99.9 or its class floor) or `smallHistory` (class-floor multiple and median multiple while history is short)."
        }
      }
    }
  }
}