{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reservoir/json-schema/reservoir-get-user-top-bids-v4-response-schema.json",
  "title": "getUserTopBidsV4Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reservoir-accounts-api-openapi.yml#/components/schemas/getUserTopBidsV4Response",
  "type": "object",
  "properties": {
    "totalTokensWithBids": {
      "type": "number",
      "description": "Amount of token with bids."
    },
    "totalAmount": {
      "type": "number",
      "description": "Amount of currency from all token bids; native currency unless `displayCurrency` passed"
    },
    "topBids": {
      "$ref": "#/$defs/Model458"
    },
    "continuation": {
      "type": "string"
    }
  },
  "$defs": {
    "Model121": {
      "type": "object",
      "properties": {
        "tokenId": {
          "type": "string",
          "pattern": "^-?[0-9]+$"
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "isSpam": {
          "type": "boolean"
        },
        "isNsfw": {
          "type": "boolean"
        }
      }
    },
    "Model122": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "isSpam": {
          "type": "boolean"
        },
        "isNsfw": {
          "type": "boolean"
        }
      }
    },
    "Model123": {
      "type": "object",
      "properties": {
        "token": {
          "$ref": "#/$defs/Model121"
        },
        "collection": {
          "$ref": "#/$defs/Model122"
        }
      }
    },
    "Model124": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "token"
          ]
        },
        "data": {
          "$ref": "#/$defs/Model123"
        }
      }
    },
    "Model128": {
      "type": "object",
      "description": "Return native currency unless displayCurrency contract was passed.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "amount": {
          "$ref": "#/$defs/amount"
        },
        "netAmount": {
          "$ref": "#/$defs/netAmount"
        }
      }
    },
    "Model194": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "description": "Can be marketplace or royalty"
        },
        "recipient": {
          "type": "string"
        },
        "bps": {
          "type": "number"
        }
      }
    },
    "Model195": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Model194"
      }
    },
    "Model454": {
      "type": "object",
      "description": "Native currency to chain unless displayCurrency is passed.",
      "properties": {
        "currency": {
          "$ref": "#/$defs/currency"
        },
        "amount": {
          "$ref": "#/$defs/amount"
        },
        "netAmount": {
          "$ref": "#/$defs/netAmount"
        }
      }
    },
    "Model455": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "imageUrl": {
          "type": "string"
        },
        "floorAskPrice": {
          "$ref": "#/$defs/Model454"
        }
      }
    },
    "Model456": {
      "type": "object",
      "properties": {
        "contract": {
          "type": "string"
        },
        "tokenId": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "floorAskPrice": {
          "$ref": "#/$defs/price"
        },
        "lastSalePrice": {
          "$ref": "#/$defs/price"
        },
        "collection": {
          "$ref": "#/$defs/Model455"
        }
      }
    },
    "Model457": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "price": {
          "$ref": "#/$defs/Model128"
        },
        "maker": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$",
          "x-convert": {
            "case": "lower"
          }
        },
        "createdAt": {
          "type": "string",
          "description": "Time when added to indexer"
        },
        "validFrom": {
          "type": "number"
        },
        "validUntil": {
          "type": "number"
        },
        "floorDifferencePercentage": {
          "type": "number",
          "description": "Percentage difference between this bid and the current floor price."
        },
        "source": {
          "$ref": "#/$defs/source"
        },
        "feeBreakdown": {
          "$ref": "#/$defs/Model195"
        },
        "criteria": {
          "$ref": "#/$defs/Model124"
        },
        "token": {
          "$ref": "#/$defs/Model456"
        }
      }
    },
    "Model458": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Model457"
      }
    },
    "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"
        }
      }
    },
    "source": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "icon": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      }
    }
  }
}