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

# Get Provider Stats

Retrieve statistics for the provider.


## OpenAPI

````yaml openapi-v2.yaml GET /provider/stats
openapi: 3.0.3
info:
  title: Paycrest Aggregator API
  version: 1.0.0
  description: >
    OpenAPI schema for the Paycrest Aggregator API. This covers sender,
    provider, and general endpoints.
servers:
  - url: https://api.paycrest.io/v2
security: []
tags:
  - name: Sender
    description: Endpoints for senders to create and manage payment orders
  - name: Provider
    description: Endpoints for providers to manage and fulfill orders
  - name: General
    description: General protocol and utility endpoints
paths:
  /provider/stats:
    get:
      tags:
        - Provider
      summary: Get provider stats
      parameters:
        - in: query
          name: currency
          required: true
          schema:
            type: string
          description: Fiat currency code (e.g. NGN, KES).
        - $ref: '#/components/parameters/OptionalOrderDirection'
      responses:
        '200':
          description: Provider stats
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/StandardResponse'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/ProviderStatsResponse'
        '400':
          description: Bad request (e.g. missing `currency`, invalid `direction`)
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
      servers:
        - url: https://api.paycrest.io/v2
components:
  parameters:
    OptionalOrderDirection:
      name: direction
      in: query
      required: false
      schema:
        type: string
        enum:
          - onramp
          - offramp
      description: >
        Filter to **onramp** (fiat → crypto) or **offramp** (crypto → fiat).
        Omit to include **both** directions.


        On **stats** endpoints, invalid values return **400 Bad Request**. On
        **list** endpoints, values other than `onramp` or `offramp` are ignored
        (no direction filter).


        **HMAC (GET):** the signed payload includes all query parameters—include
        `direction` when you send it (alongside `timestamp`, `currency`, etc.).
  schemas:
    StandardResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Operation successful
        data:
          type: object
          description: The actual response data (e.g., ReceiveAddressResponse, etc.)
    ProviderStatsResponse:
      type: object
      properties:
        totalOrders:
          type: integer
        totalFiatVolume:
          type: string
        totalCryptoVolume:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: API-Key

````