# 利率（即時）

**API:** Data API

**Endpoint:** `GET /v1/beta/financial/macro/interest-rates/snapshot`

**Tags:** Financial Data

傳回最新的央行利率快照。可選的 bank 代碼區分大小寫，例如 FED、ECB 或 BOJ。省略 bank 可要求所有支援的央行。小寫的 bank 代碼可能傳回 HTTP 404。

### 計費參考

- 計量方式：以成功請求為固定成本基礎。
- 參考請求估算：0.02 美元。
- 參考客戶倍率：1.0。不得對已結算的客戶金額再次應用。

僅供參考的中繼資料，並非帳戶報價、保證價格或消費上限。資源額度並非 Felo 額度。最終費用依 Felo 計費記錄為準。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `bank` | query | no | string | 選用的大寫中央銀行代碼，例如 FED、ECB 或 BOJ。省略則請求所有支援的中央銀行。 |

## Responses

### 200 — 利率快照回應

Headers:
- `X-Request-Id` (string) — 聯絡 Felo 支援時需提供的請求識別碼。

**application/json**

Schema: `ResponseE40Feb4D3D6B_InterestRatesResponse` (`#/components/schemas/ResponseE40Feb4D3D6B_InterestRatesResponse`)

### 400 — 無法處理該要求。請檢查請求參數。

### 401 — 需要有效的 Felo API 金鑰。

### 402 — 由於未符合計費要求，要求無法繼續。

### 403 — 該帳戶無權執行此操作。

### 429 — 已達到要求或支出上限。

### 502 — 服務無法完成該要求。

### 503 — API 或計費服務暫時無法使用。

### 504 — 服務在處理要求時逾時。

### default — 錯誤回應；上游透傳回應可能採用供應商格式

**application/json**

Schema:

```json
{}
```

## Schema definitions

### ResponseE40Feb4D3D6B_InterestRate

`#/components/schemas/ResponseE40Feb4D3D6B_InterestRate`

```json
{
  "type": "object",
  "properties": {
    "bank": {
      "type": "string",
      "description": "中央銀行的代碼。"
    },
    "name": {
      "type": "string",
      "description": "中央銀行的名稱。"
    },
    "rate": {
      "type": "number",
      "description": "當日政策利率，以百分比表示。對於聯準會，為目標區間的中點。"
    },
    "date": {
      "type": "string",
      "description": "利率生效的日曆日，格式為 YYYY-MM-DD。"
    }
  }
}
```

### ResponseE40Feb4D3D6B_InterestRatesResponse

`#/components/schemas/ResponseE40Feb4D3D6B_InterestRatesResponse`

```json
{
  "type": "object",
  "properties": {
    "interest_rates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResponseE40Feb4D3D6B_InterestRate"
      }
    },
    "next_page_url": {
      "type": "string",
      "description": "僅限歷史資料。下一頁結果的絕對 URL。僅在還有更多列時出現；依原樣要求即可繼續。每頁最多 10 列。"
    }
  }
}
```
