> ## 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.

# Realized PnL for a specific set of signers

> Returns realized PnL (SOL + USD) and trade count for each of the supplied
wallet addresses over the selected period. Unlike the leaderboard/summary
endpoints, results include NEGATIVE PnL (there is no `HAVING pnl > 0` filter).
There is no platform field or filter.




## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/platform/pnl-for-signers
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/platform/pnl-for-signers:
    get:
      summary: Realized PnL for a specific set of signers
      description: >
        Returns realized PnL (SOL + USD) and trade count for each of the
        supplied

        wallet addresses over the selected period. Unlike the
        leaderboard/summary

        endpoints, results include NEGATIVE PnL (there is no `HAVING pnl > 0`
        filter).

        There is no platform field or filter.
      operationId: getPnlForSigners
      parameters:
        - name: period
          in: query
          schema:
            type: string
            enum:
              - daily
              - weekly
              - monthly
            default: daily
          description: Time period to aggregate over.
        - name: addresses
          in: query
          required: true
          schema:
            type: string
          description: >
            Comma-separated wallet addresses (each ≥ 32 chars, ≤ 600 unique).
            Missing `addresses` returns a raw 400 text response (not JSON).
          example: A7DG1JFBy8TXccPSo96A4BUNRkHN51iQGGR2TEQwDCuq
      responses:
        '200':
          description: >
            Success. On empty-after-filter input, more than 600 addresses, or a
            bad

            period, returns HTTP 200 with `{ success: false, error }` instead.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PnlForSignersResponse'
        '400':
          description: Missing `addresses` (raw text/plain body, not JSON).
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    PnlForSignersResponse:
      type: object
      properties:
        success:
          type: boolean
        period:
          type: string
          enum:
            - daily
            - weekly
            - monthly
        wallets:
          type: array
          items:
            type: object
            properties:
              signer:
                type: string
              pnlSol:
                type: number
                description: Realized PnL in SOL (may be negative).
              pnlUsd:
                type: number
                description: Realized PnL in USD (may be negative).
              trades:
                type: integer
        solPriceUsd:
          type: number
        timestamp:
          type: string
          format: date-time
        error:
          type: string
          description: >-
            Present only on failure responses (empty-after-filter, > 600
            addresses, or bad period).
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````