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

# Aggregated deposit statistics

> Returns aggregated deposit statistics (total deposits, unique depositors, and total USD volume) for the authenticated client over the requested rolling time window. Only completed deposits are counted.



## OpenAPI

````yaml https://raw.githubusercontent.com/rhinestonewtf/openapi/refs/heads/main/deposit-service.json get /deposits/stats
openapi: 3.1.0
info:
  title: Deposit Service API
  version: 1.0.0
  description: >-
    Cross-chain deposit processing service with automatic token bridging and gas
    sponsorship
servers:
  - url: https://v1.orchestrator.rhinestone.dev/deposit-processor
security: []
paths:
  /deposits/stats:
    get:
      tags:
        - Processing
      summary: Aggregated deposit statistics
      description: >-
        Returns aggregated deposit statistics (total deposits, unique
        depositors, and total USD volume) for the authenticated client over the
        requested rolling time window. Only completed deposits are counted.
      parameters:
        - schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
            description: Rolling time window for aggregated stats
            example: 7d
          required: true
          description: Rolling time window for aggregated stats
          name: period
          in: query
        - schema:
            type: string
            description: API key for authentication
            example: your-api-key
          required: true
          description: API key for authentication
          name: x-api-key
          in: header
      responses:
        '200':
          description: Deposit statistics for the requested period
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositStatsResponse'
        '400':
          description: Invalid query or API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    DepositStatsResponse:
      type: object
      properties:
        period:
          type: string
          enum:
            - 24h
            - 7d
            - 30d
          description: Rolling time window for aggregated stats
          example: 7d
        totalDeposits:
          type: integer
          minimum: 0
        uniqueUsers:
          type: integer
          minimum: 0
        volumeUsd:
          type: string
      required:
        - period
        - totalDeposits
        - uniqueUsers
        - volumeUsd
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              code:
                type: string
            required:
              - message
      required:
        - error

````