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

# Concentration & exposure risk

> Value-weighted concentration (top1/3/5 %, HHI) and exposure over PRICED open positions (read-time spot). Mode-independent (no `pnl_mode`). Concentration fields are `null` when total open value <= 0. Cached 5s hot / 30s cold.



## OpenAPI

````yaml /api-reference/openapi.json get /v2/pnl/wallets/{wallet}/risk
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /v2/pnl/wallets/{wallet}/risk:
    get:
      tags:
        - Wallet PnL (v2)
      summary: Concentration & exposure risk
      description: >-
        Value-weighted concentration (top1/3/5 %, HHI) and exposure over PRICED
        open positions (read-time spot). Mode-independent (no `pnl_mode`).
        Concentration fields are `null` when total open value <= 0. Cached 5s
        hot / 30s cold.
      operationId: getPnlV2Risk
      parameters:
        - name: wallet
          in: path
          required: true
          schema:
            type: string
          description: Wallet address (base58, 32–44 characters).
      responses:
        '200':
          description: Risk profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  wallet:
                    type: string
                  concentration:
                    type: object
                    properties:
                      top1_pct:
                        type:
                          - number
                          - 'null'
                      top3_pct:
                        type:
                          - number
                          - 'null'
                      top5_pct:
                        type:
                          - number
                          - 'null'
                      hhi:
                        type:
                          - number
                          - 'null'
                    description: Null fields when total open value <= 0.
                  total_open_value_sol:
                    type: number
                  total_open_value_usd:
                    type:
                      - number
                      - 'null'
                  exposure:
                    type: object
                    properties:
                      open_positions:
                        type: integer
                      closed_positions:
                        type: integer
                      quote_positions:
                        type: integer
                      arbitrageur_positions:
                        type: integer
                      pct_arbitrageur:
                        type: number
                        description: arb_open / open_count.
                      quote_value_sol:
                        type: number
                      nonquote_value_sol:
                        type: number
                  priced_position_count:
                    type: integer
                  open_count:
                    type: integer
        '400':
          description: Invalid parameter or malformed body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_PARAM
            message:
              type: string
              example: >-
                use pair_address; see /api/v1/pairs?token_address=X to discover
                pools
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````