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

# ADL quantile

> Retrieve Auto-Deleveraging (ADL) quantile values per perpetual market for the authenticated collateral account on the V4 API.

## Authentication

**Signed (HMAC-SHA512).** Provide an API key, payload, and request signature on every call. See [Authentication](/api-reference/authentication).

## Rate limit

## Cache

No caching.

## Notes

The endpoint returns entries for perpetual markets only — markets with the `_PERP` suffix. Spot and margin markets are excluded from the response.

The response is `[]` when the account has no open perpetual positions. See [ADL Grade](/concepts/auto-deleveraging#adl-grade) for the meaning of the `0`–`4` quantile values and the underlying selection mechanics.

* [Open positions](/api-reference/collateral-trading/open-positions) — List all currently open collateral trading positions
* [Auto-Deleveraging concept](/concepts/auto-deleveraging) — Mechanism, rating formula, and grade thresholds
* [Close position](/api-reference/collateral-trading/close-position) — Close an open perpetual position
* [Collateral account summary](/api-reference/collateral-trading/collateral-account-summary) — Account-level margin and equity


## OpenAPI

````yaml /openapi/private/http-trade-v4.yaml POST /api/v4/collateral-account/adl-quantile
openapi: 3.0.3
info:
  title: Private HTTP API V4 - Collateral Trading
  description: |
    WhiteBIT Private HTTP API V4 for collateral/margin trading operations.

    Base URL: https://whitebit.com

    All endpoints return time in Unix-time format.
    All endpoints return either a JSON object or array.
    For receiving responses from API calls please use http method POST.

    Authentication required for all endpoints.
  version: 4.0.0
  license:
    name: WhiteBIT Terms of Service
    url: https://whitebit.com/terms
servers:
  - url: https://whitebit.com
    description: WhiteBIT Global Server
  - url: https://whitebit.eu
    description: WhiteBIT EU Server
security:
  - ApiKeyAuth: []
    PayloadAuth: []
    SignatureAuth: []
tags:
  - name: Collateral Trading
    description: Endpoints for collateral/margin trading operations
  - name: Spot Trading
    description: Endpoints for spot trading operations
  - name: Market Fee
    description: Endpoints for querying trading fees
paths:
  /api/v4/collateral-account/adl-quantile:
    post:
      tags:
        - Collateral Trading
      summary: ADL Quantile
      description: >
        The endpoint returns the [Auto-Deleveraging
        (ADL)](/glossary#auto-deleveraging-adl) quantile for each perpetual
        market in which the authenticated account holds an open position. Each
        entry exposes the deleveraging-priority value for the long and short
        sides of the position, where `0` indicates the lowest deleveraging
        priority and `4` indicates the highest. The endpoint returns an empty
        array when the account has no perpetual positions.


        <Warning>

        Rate limit: 12000 requests/10 sec.

        </Warning>


        <Note>

        Only perpetual markets (markets with the `_PERP` suffix) are returned.
        Spot and margin markets are not included.

        </Note>
      operationId: getCollateralAccountAdlQuantile
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - request
                - nonce
              properties:
                request:
                  type: string
                  example: '{{request}}'
                nonce:
                  type: integer
                  example: 1594297865000
            example:
              request: '{{request}}'
              nonce: 1594297865000
      responses:
        '200':
          description: >-
            Successful response — returns array of per-market ADL quantile
            entries
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    market:
                      type: string
                      description: 'Perpetual market name. Format: `BASE_PERP`.'
                      example: BTC_PERP
                    long:
                      type: integer
                      nullable: true
                      minimum: 0
                      maximum: 4
                      description: >-
                        ADL quantile for the long side of the position. Values
                        range from `0` to `4`: `0` indicates the lowest
                        deleveraging priority (safest position in the ADL
                        queue); `4` indicates the highest probability of being
                        selected as the ADL counterparty. The value is `null`
                        when the account has no exposure on the long side.
                      example: 0
                    short:
                      type: integer
                      nullable: true
                      minimum: 0
                      maximum: 4
                      description: >-
                        ADL quantile for the short side of the position. Values
                        range from `0` to `4`: `0` indicates the lowest
                        deleveraging priority; `4` indicates the highest
                        probability of being selected as the ADL counterparty.
                        The value is `null` when the account has no exposure on
                        the short side.
                      example: null
              example:
                - market: BTC_PERP
                  long: 0
                  short: null
                - market: ETH_PERP
                  long: 2
                  short: 1
        '422':
          description: Inner validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service temporarily unavailable
      security:
        - ApiKeyAuth: []
          PayloadAuth: []
          SignatureAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code
          example: 30
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed error information
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-TXC-APIKEY
      description: The public WhiteBIT API key.
    PayloadAuth:
      type: apiKey
      in: header
      name: X-TXC-PAYLOAD
      description: Base64-encoded JSON request body.
    SignatureAuth:
      type: apiKey
      in: header
      name: X-TXC-SIGNATURE
      description: >-
        HMAC-SHA512 signature of the payload, hex-encoded. Computed as
        hex(HMAC-SHA512(payload, api_secret)).

````