> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loopscale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get collateral holders

> Fetches a list of users and total balances for one or more specified collateral mints.



## OpenAPI

````yaml post /markets/collateral/holders
openapi: 3.1.0
info:
  title: Loopscale API
  version: 0.1.0
servers:
  - url: https://tars.loopscale.com/v1
    description: Loopscale Production Server
security: []
paths:
  /markets/collateral/holders:
    post:
      tags:
        - stats
      summary: Get collateral holders
      description: >-
        Fetches a list of users and total balances for one or more specified
        collateral mints.
      operationId: query_get_active_collateral_summary
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HolderFilter'
        required: true
      responses:
        '200':
          description: Active collateral holder summary
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CollateralHolderStats'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    HolderFilter:
      type: object
      description: asset filter
      required:
        - mints
      properties:
        mints:
          type: array
          items:
            type: string
          description: assets
        pdas:
          type: boolean
          description: Return the PDAs holding the assets, if false it returns the borrower
    CollateralHolderStats:
      type: object
      description: |-
        Active-holder summary for one collateral mint: total deposits plus a
        per-holder (wallet → amount) breakdown.
      required:
        - collateralMint
        - totalDeposits
        - userDeposits
      properties:
        collateralMint:
          type: string
        totalDeposits:
          type: number
          format: double
        userDeposits:
          type: object
          additionalProperties:
            type: number
            format: double
          propertyNames:
            type: string
    ErrorResponse:
      type: object
      description: |-
        Canonical error envelope for every endpoint. The `x-request-id` response
        header carries the correlation id for the failing request.
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetails'
          description: error detail
    ErrorDetails:
      type: object
      description: Inner detail of the [`ErrorResponse`] envelope.
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
          description: HTTP status code, mirrored in the response status line
          example: 400
          minimum: 0
        message:
          type: string
          description: human-readable, client-safe message (sensitive data redacted)
          example: Request could not be processed.

````