> ## 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 APY data for specific stablecoin

> Retrieve historical APY data for a specific stablecoin over a specified number of days.



## OpenAPI

````yaml /api-reference/openapi.json get /stablecoin/{index}/apy/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:
  /stablecoin/{index}/apy/historical:
    get:
      tags:
        - Stablecoin
      summary: Get historical APY data for specific stablecoin
      description: >-
        Retrieve historical APY data for a specific stablecoin over a specified
        number of days.
      parameters:
        - name: index
          in: path
          description: 'Stablecoin index (0: USDC+)'
          required: true
          schema:
            type: integer
        - name: days
          in: query
          description: 'Number of days for historical data (default: 365)'
          required: false
          schema:
            type: integer
            minimum: 1
            default: 365
      responses:
        '200':
          description: Successfully retrieved historical APY data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsdcApyResponse'
        '400':
          description: Invalid stablecoin index parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
components:
  schemas:
    UsdcApyResponse:
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/UsdcApyData'
          required:
            - data
    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
    BaseResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
      required:
        - success
    UsdcApyData:
      type: object
      properties:
        index:
          type: integer
          description: 'Stablecoin index (0: USDC+)'
          example: 0
        apy:
          type: number
          description: APY as a number
          example: 5.25
        timestamp:
          type: string
          format: date-time
          description: Timestamp of the data point
      required:
        - index
        - apy
        - timestamp

````

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