# HIBOR日度利率

- 接口：hibor_daily
- 路径：/api/v1/market/data/hibor-daily
- 方法：GET
- 描述：按日期范围查询香港银行同业拆借利率（HIBOR）日度数据。
- 数据范围：跟随香港银行公会发布节奏；香港市场假日、周末和未发布日无记录。个别历史日期或期限可为空，接口不插值、补算或前值填充。
- 单次限量：分页返回，默认 `page=1`、`page_size=100`，`page_size` 最大 1000。
- 提示：结果按 `trade_date` 升序。

## 输入参数

| 名称 | 类型 | 必选 | 描述 |
|------|------|------|------|
| start_date | string | Y | 开始日期，格式 YYYYMMDD |
| end_date | string | Y | 结束日期，格式 YYYYMMDD，不能早于 start_date |
| page | integer | N | 页码，从 1 开始，默认 1 |
| page_size | integer | N | 每页数量，默认 100，范围 1–1000 |

## 输出参数

成功响应外层固定为 `code`、`message`、`data`：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| code | integer | Y | 状态码。 |
| message | string | Y | 状态信息。 |
| data | object / null | Y | 成功时为业务数据对象；失败时为 `null`。其字段如下 |

data 对象：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| pageNum | integer | Y | 当前页码 |
| pageSize | integer | Y | 每页条数 |
| total | integer | Y | 总记录数 |
| pages | integer | Y | 总页数 |
| records | array | Y | 利率记录列表 |

records 数组：

| 名称 | 类型 | 默认显示 | 描述 |
|------|------|---------|------|
| trade_date | string | Y | 交易日期 |
| on_rate | number | Y | 隔夜利率 |
| w1、w2 | number | Y | 1 周、2 周利率 |
| m1–m12 | number | Y | 1 至 12 月利率 |

## 接口示例

```bash
curl -sS 'https://market.ft.tech/gateway/api/v1/market/data/hibor-daily?start_date=20260701&end_date=20260731&page=1&page_size=100'
```

Python（[`ftshare`](https://github.com/FTShare-Lab/FTShare-python-sdk.git) SDK，方法 `market.hibor_daily`，默认返回 pandas `DataFrame`）：

```python
import ftshare as ft

market = ft.market_api()
df = market.hibor_daily(start_date="20260630", end_date="20260630")
print(df)
```

## 数据样例

| trade_date | on_rate | w1 | m1 | m12 |
|------|------|------|------|------|
| 2026-07-01 | ... | ... | ... | ... |
