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

# Get historical statistics for a specific stablecoin

> Retrieve historical TVL and volume data for a specific stablecoin by index.



## OpenAPI

````yaml /api-reference/openapi.json get /stats/historical/{index}
openapi: 3.0.3
info:
  title: Reflect API
  description: >-
    Interact with the Reflect infrastructure via API. Retrieve stablecoin and
    protocol stats. Generate transactions for minting and redeeming stablecoins.
    Manage integrations and issue whitelabel stablecoins.


    ## Rate Limiting

    - **Unauthenticated users**: 100 requests per minute

    - **Authenticated integrators**: 500 requests per minute


    ## Authentication

    To access higher rate limits, include your API key in the `X-API-Key`
    header. API keys can be obtained through the integration management
    endpoints.
  version: 1.0.0
  contact:
    name: Reflect
    url: https://reflect.money
servers:
  - url: https://prod.api.reflect.money
    description: Production environment
  - url: https://dev.api.reflect.money
    description: Development environment (includes /tranches endpoints)
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Stablecoin
    description: Reflect stablecoins interaction endpoints.
  - name: Integration
    description: Custom integration management endpoints.
  - name: Stats
    description: Protocol statistics endpoints
  - name: Events
    description: Protocol events endpoints
  - name: Tranches - Senior
    description: >-
      Senior tranche endpoints (development API only). Deposit and redeem
      underlying stablecoins, query tranche statistics and exchange rates.
  - name: Tranches - Junior
    description: >-
      Junior tranche endpoints (development API only). Deposit and withdraw
      assets, manage cooldowns, query tranche statistics and exchange rates.
  - name: Tranches
    description: General tranche endpoints (development API only).
paths:
  /stats/historical/{index}:
    get:
      tags:
        - Stats
      summary: Get historical statistics for a specific stablecoin
      description: >-
        Retrieve historical TVL and volume data for a specific stablecoin by
        index.
      parameters:
        - name: index
          in: path
          description: Stablecoin index (0 or 1)
          required: true
          schema:
            type: integer
            enum:
              - 0
              - 1
        - name: days
          in: query
          description: Number of days of historical data (max 365)
          required: true
          schema:
            type: string
            pattern: ^[0-9]+$
            example: '7'
      responses:
        '200':
          description: Historical statistics retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      tvl:
                        type: array
                        items:
                          type: object
                          properties:
                            custom_time:
                              type: string
                              format: date-time
                              description: Timestamp of the data point
                            usd_value:
                              type: number
                              description: TVL in USD at this point in time
                          required:
                            - custom_time
                            - usd_value
                      volume:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              format: date-time
                              description: Date of the volume data point
                            volume_usd_24h:
                              type: string
                              description: 24h volume as string (BigInt)
                            volume_usd_cumulative:
                              type: string
                              description: Cumulative volume as string (BigInt)
                          required:
                            - date
                            - volume_usd_24h
                            - volume_usd_cumulative
                    required:
                      - tvl
                      - volume
                required:
                  - success
                  - data
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
components:
  schemas:
    BadRequestErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
          example: false
        message:
          type: string
          description: Error message describing what went wrong with the request
          example: 'Invalid request data: depositAmount must be positive'
      required:
        - success
        - message
    InternalServerErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
          example: false
        message:
          type: string
          description: Error message describing the server error
          example: Internal server error
      required:
        - success
        - message

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.