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

# Aggregated trading profile for one or more wallets

> Returns full trading summary for the given wallet address(es).
Supports up to 500 comma-separated addresses. Single address returns a flat response,
multiple addresses return an array in `data`, preserving input order.
Optional `from` / `to` bounds scope the summary to a millisecond-precision time window.




## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/wallets/summary
openapi: 3.0.3
info:
  title: Raze Database API
  description: >
    Paid subscription API for Solana transaction data and history.


    ## Batch Requests

    All endpoints with path parameters (mint, signer, address, tokenMint,
    ownerAddress) support batch queries

    via comma-separated values. For example:
    `/api/sol/trades/mint/mint1,mint2,mint3?limit=50`


    - Maximum 10 values per batch request

    - Each value must be a valid address (>= 32 characters)

    - Single values behave identically to non-batch requests

    - Batch response format: `{ "success": true, "results": { "value1": {...},
    "value2": {...} }, "count": N, "timestamp": "..." }`

    - Each key in `results` contains the full single-entity response

    - Queries run in parallel for maximum performance
  version: 1.0.0
servers:
  - url: https://api.raze.bot
    description: >-
      Raze global History API — GeoDNS routes to the nearest region
      automatically
security:
  - ApiKeyAuth: []
paths:
  /api/sol/wallets/summary:
    get:
      summary: Aggregated trading profile for one or more wallets
      description: >
        Returns full trading summary for the given wallet address(es).

        Supports up to 500 comma-separated addresses. Single address returns a
        flat response,

        multiple addresses return an array in `data`, preserving input order.

        Optional `from` / `to` bounds scope the summary to a
        millisecond-precision time window.
      operationId: getWalletSummary
      parameters:
        - name: addresses
          in: query
          required: true
          schema:
            type: string
          description: One or more wallet addresses (comma-separated, max 500)
          example: 62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm
        - name: from
          in: query
          schema:
            type: integer
          description: Inclusive lower bound in Unix milliseconds
        - name: to
          in: query
          schema:
            type: integer
          description: Exclusive upper bound in Unix milliseconds
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletSummaryResponse'
        '400':
          description: Invalid wallet address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    WalletSummaryResponse:
      type: object
      properties:
        success:
          type: boolean
        address:
          type: string
          description: Present for single-address requests
        data:
          oneOf:
            - $ref: '#/components/schemas/WalletSummaryItem'
            - type: array
              items:
                $ref: '#/components/schemas/WalletSummaryItem'
          description: >-
            Single wallet object for one address, or an array for batched
            requests
        count:
          type: integer
          description: Present for multi-address responses
        solPriceUsd:
          type: number
        from:
          type: string
          format: date-time
          nullable: true
        to:
          type: string
          format: date-time
          nullable: true
        timestamp:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        code:
          type: string
        success:
          type: boolean
      example:
        error: Unauthorized
        message: Invalid API key
        code: INVALID_KEY
        success: false
    WalletSummaryItem:
      type: object
      properties:
        address:
          type: string
        totalTrades:
          type: integer
        totalBuys:
          type: integer
        totalSells:
          type: integer
        buyRatio:
          type: number
          description: Ratio of buys to total trades (0-1)
        sellRatio:
          type: number
          description: Ratio of sells to total trades (0-1)
        totalVolumeSol:
          type: number
        totalVolumeUsd:
          type: number
        buyVolumeSol:
          type: number
        buyVolumeUsd:
          type: number
        sellVolumeSol:
          type: number
        sellVolumeUsd:
          type: number
        avgTradeSizeSol:
          type: number
        avgTradeSizeUsd:
          type: number
        largestTradeSol:
          type: number
        largestTradeUsd:
          type: number
        totalFees:
          type: number
        realizedPnlSol:
          type: number
        realizedPnlUsd:
          type: number
        realizedPnlPct:
          type: number
          nullable: true
          description: >-
            Realized PnL as a percentage of buy-side SOL volume for the selected
            window
        uniqueTokensTraded:
          type: integer
        winningTokens:
          type: integer
          description: Number of tokens where sell SOL > buy SOL (profitable trades)
        winRate:
          type: number
          description: Percentage of tokens traded profitably (0-1)
        firstTradeAt:
          type: string
          format: date-time
        lastTradeAt:
          type: string
          format: date-time
        proTradeCount:
          type: integer
        sniperCount:
          type: integer
        bundleCount:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````