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

# Historical Interest Rates

> Retrieve historical interest rate data for a specified central bank over an optional date range.



## OpenAPI

````yaml openapi/macro_snapshot.json GET /macro/interest-rates
openapi: 3.0.3
info:
  title: Financial Datasets API — Macro Interest Rates
  version: 1.0.0
  description: >-
    Central bank interest rate data (historical series + real-time snapshot),
    proxied through AIsa.
servers:
  - url: https://api.aisa.one/apis/v1/financial
    description: Production API
security:
  - bearerAuth: []
paths:
  /macro/interest-rates:
    get:
      summary: Interest Rates (Historical)
      description: Historical interest rates for all major central banks in the world.
      operationId: getInterestRatesHistorical
      parameters:
        - name: bank
          in: query
          description: >-
            The bank whose interest rates to return. Use the
            /macro/interest-rates/banks endpoint to get a list of available
            banks.
          required: true
          schema:
            type: string
        - name: start_date
          in: query
          description: The start date of the interest rates to return in YYYY-MM-DD format.
          required: false
          schema:
            type: string
        - name: end_date
          in: query
          description: The end date of the interest rates to return in YYYY-MM-DD format.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Interest rates response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InterestRatesResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/PaymentRequiredError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    InterestRatesResponse:
      type: object
      properties:
        interest_rates:
          type: array
          items:
            $ref: '#/components/schemas/InterestRate'
    InterestRate:
      type: object
      properties:
        bank:
          type: string
          description: The symbol of the central bank.
        name:
          type: string
          description: The name of the central bank.
        rate:
          type: number
          description: The interest rate of the central bank.
        date:
          type: string
          description: The date of the interest rate in YYYY-MM-DD format.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: A short error message.
        message:
          type: string
          description: A more detailed error message.
  responses:
    BadRequestError:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Bad Request
            message: Invalid request parameters
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Unauthorized
            message: Invalid API key provided
    PaymentRequiredError:
      description: The request requires a paid subscription
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Payment Required
            message: >-
              This endpoint requires a paid subscription. Please upgrade your
              plan.
    NotFoundError:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Not Found
            message: Ticker XXXX not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````