> ## 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 junior tranche statistics

> **Available on development API only.**

Retrieve time-bucketed historical statistics for a junior tranche. Returns hourly data for periods ≤ 7 days, daily data otherwise.



## OpenAPI

````yaml /api-reference/openapi.json get /tranches/junior/{id}/stats/historical
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:
  /tranches/junior/{id}/stats/historical:
    get:
      tags:
        - Tranches - Junior
      summary: Get historical junior tranche statistics
      description: >-
        **Available on development API only.**


        Retrieve time-bucketed historical statistics for a junior tranche.
        Returns hourly data for periods ≤ 7 days, daily data otherwise.
      parameters:
        - name: id
          in: path
          required: true
          description: Junior tranche ID (PDA address)
          schema:
            type: string
        - name: period
          in: query
          required: false
          description: 'Period in days (default: 7)'
          schema:
            type: string
        - name: cluster
          in: query
          required: false
          description: Solana cluster (defaults to mainnet)
          schema:
            type: string
            enum:
              - mainnet
              - devnet
            default: mainnet
      responses:
        '200':
          description: Historical junior tranche statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JuniorTrancheHistoricalStatsResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
components:
  schemas:
    JuniorTrancheHistoricalStatsResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            period:
              type: string
              description: Period in days
            historicalData:
              type: array
              items:
                type: object
                properties:
                  liquidity_pool_id:
                    type: string
                  lp_token_supply:
                    type: string
                  total_value_locked:
                    type: string
                  holders:
                    type: integer
                  exchange_rate_usd:
                    type: string
                  exchange_rate_underlying:
                    type: string
                  coverage_ratio_bps:
                    type: integer
                    nullable: true
                  apy_bps:
                    type: integer
                    nullable: true
                  apy_bps_7d:
                    type: integer
                    nullable: true
                  market_cap:
                    type: string
                    nullable: true
                  timestamp:
                    type: string
                    format: date-time
    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

````

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