# StableFinance Macro Interest Rates

> StableFinance Macro Interest Rates is a paid API for AI agents from stablefinance.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Returns historical and current central bank interest rates for a specified bank and optional date range via pay-per-request x402 micropayment access.

## Facts

- Endpoint: GET https://stablefinance.dev/api/macro/interest-rates
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablefinance-macro-interest-rates-9c732d23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aaNBSCGNqv9DDaLjcWrBQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability stablefinance-macro-interest-rates-9c732d23
```

Example prompt: What has the Federal Reserve's interest rate been from January 2022 to December 2024? Pull the full history from StableFinance's macro interest rates endpoint using bank code FED.

## When to prefer this

Use this endpoint when you need reliable, pay-per-use access to central bank benchmark interest rate data — especially FED or similar macro-level rates — without a subscription. Ideal for agents performing macroeconomic analysis, building financial dashboards, or enriching models with monetary policy data on a per-query basis.

## Known failure modes

- Missing required 'bank' query parameter returns a 400 or 422 validation error
- Invalid date format (not YYYY-MM-DD) causes a schema validation failure
- Unknown bank identifier may return an empty array or 404
- Insufficient USDC balance or failed x402 micropayment results in a 402 Payment Required response
- Date range with no available data returns an empty interest_rates array

## How this service works

Historical policy rates for a central bank.

## Output

Returns a JSON array of interest rate records, each containing the bank identifier (e.g. 'FED'), the date, the bank's full name (e.g. 'Federal Reserve'), and the rate as a decimal percentage (e.g. 3.625).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "bank": "FED",
   "end_date": "2024-12-31",
   "start_date": "2022-01-01"
  }
 },
 "output": {
  "type": "application/json",
  "example": {
   "interest_rates": []
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "bank"
     ],
     "properties": {
      "bank": {
       "type": "string",
       "minLength": 1
      },
      "end_date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "start_date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "interest_rates"
     ],
     "properties": {
      "interest_rates": {
       "type": "array",
       "items": {}
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "interest_rates": [
   {
    "bank": "FED",
    "date": "2026-04-01",
    "name": "Federal Reserve",
    "rate": 3.625
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablefinance-macro-interest-rates-9c732d23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablefinance.dev](https://www.zero.xyz/host/stablefinance.dev/llms.txt)
