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

# Get wallet performance history



## OpenAPI

````yaml openapi-spec/history.yaml get /api/sol/wallets/{address}/performance
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/{address}/performance:
    get:
      summary: Get wallet performance history
      operationId: getWalletPerformance
      parameters:
        - name: address
          in: path
          required: true
          schema:
            type: string
          example: 62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm
        - name: from
          in: query
          required: true
          schema:
            type: integer
          description: Start timestamp (Unix seconds)
        - name: to
          in: query
          required: true
          schema:
            type: integer
          description: End timestamp (Unix seconds)
        - name: resolution
          in: query
          schema:
            type: string
            enum:
              - 1h
              - 1d
            default: 1d
          description: Time bucket resolution - 1h (hourly) or 1d (daily)
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletPerformanceResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Database error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    WalletPerformanceResponse:
      type: object
      properties:
        success:
          type: boolean
        address:
          type: string
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
        resolution:
          type: string
          enum:
            - 1h
            - 1d
        data:
          type: array
          items:
            $ref: '#/components/schemas/WalletPerformanceDataPoint'
        count:
          type: integer
        solPriceUsd:
          type: number
        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
    WalletPerformanceDataPoint:
      type: object
      properties:
        bucket:
          type: string
          format: date-time
          description: Bucket start time (ISO 8601).
        trades:
          type: integer
        buys:
          type: integer
        sells:
          type: integer
        volumeSol:
          type: number
        volumeUsd:
          type: number
        realizedPnlSol:
          type: number
        realizedPnlUsd:
          type: number
        uniqueTokens:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey

````