{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reservoir/json-schema/reservoir-get-collections-topbid-v2-response-schema.json",
  "title": "getCollectionsTopbidV2Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reservoir-events-api-openapi.yml#/components/schemas/getCollectionsTopbidV2Response",
  "type": "object",
  "properties": {
    "events": {
      "$ref": "#/$defs/Model320"
    },
    "continuation": {
      "type": "string",
      "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
    }
  },
  "$defs": {
    "Model306": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      }
    },
    "Model312": {
      "type": "object",
      "properties": {
        "id": {
          "type": "number"
        },
        "kind": {
          "type": "string",
          "enum": [
            "new-order",
            "expiry",
            "sale",
            "cancel",
            "balance-change",
            "approval-change",
            "bootstrap",
            "revalidation",
            "reprice"
          ]
        },
        "previousPrice": {
          "type": "number"
        },
        "txHash": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{64}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "txTimestamp": {
          "type": "number",
          "description": "Time when added on the blockchain."
        },
        "createdAt": {
          "type": "string",
          "description": "Time when added to indexer"
        }
      }
    },
    "Model318": {
      "type": "object",
      "properties": {
        "orderId": {
          "type": "string"
        },
        "contract": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "tokenSetId": {
          "type": "string"
        },
        "maker": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "price": {
          "$ref": "#/$defs/price"
        },
        "validUntil": {
          "type": "number"
        },
        "source": {
          "type": "string"
        }
      }
    },
    "Model319": {
      "type": "object",
      "properties": {
        "collection": {
          "$ref": "#/$defs/Model306"
        },
        "topBid": {
          "$ref": "#/$defs/Model318"
        },
        "event": {
          "$ref": "#/$defs/Model312"
        }
      }
    },
    "Model320": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Model319"
      }
    },
    "amount": {
      "type": "object",
      "description": "Amount with fees & royalties included.",
      "properties": {
        "raw": {
          "type": "string",
          "pattern": "^-?[0-9]+$"
        },
        "decimal": {
          "type": "number"
        },
        "usd": {
          "type": "number"
        },
        "native": {
          "type": "number"
        }
      }
    },
    "currency": {
      "type": "object",
      "properties": {
        "contract": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "name": {
          "type": "string"
        },
        "symbol": {
          "type": "string"
        },
        "decimals": {
          "type": "number"
        },
        "chainId": {
          "type": "number"
        }
      }
    },
    "netAmount": {
      "type": "object",
      "description": "Amount with fees & royalties removed.",
      "properties": {
        "raw": {
          "type": "string",
          "pattern": "^-?[0-9]+$"
        },
        "decimal": {
          "type": "number"
        },
        "usd": {
          "type": "number"
        },
        "native": {
          "type": "number"
        }
      }
    },
    "price": {
      "type": "object",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "amount": {
          "$ref": "#/$defs/amount"
        },
        "netAmount": {
          "$ref": "#/$defs/netAmount"
        }
      }
    }
  }
}