---
title: "金额 supply history API Reference | Narwhal API"
description: "获取一个国家以本国货币计的月度广义货币历史，最早的在前。Parameters, examples, errors, freshness, and coverage."
url: "https://narwhalapi.com/zh/docs/api/economics/money-supply-history"
---

# Money supply历史数据 API

获取一个国家以本国货币计的月度广义货币历史，最早的在前。

`economics_get_money_supply_history` 可通过 REST 和 `economics_get_money_supply_history` MCP 工具调用。两者返回相同的数据结构，并使用同一额度。

## 端点与请求

REST 端点

```
GET /v1/economics/{country}/money-supply/observations
```

请求示例

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/KWT/money-supply/observations?start=2026-01&limit=2" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

MCP 使用工具 `economics_get_money_supply_history` ，并传入下方对应的参数。

## 参数

此操作接受的期间格式是 `YYYY-MM`。

| 名称 | 必填 | 类型 | 含义 |
| --- | --- | --- | --- |
| `country` | 是 | 路径·ISO alpha-3 | 一个受支持的大写国家代码；请参阅此操作的覆盖列表。 |
| `start` | 否 | 查询·YYYY-MM | 起始观测期（包含该期）。 |
| `end` | 否 | 查询·YYYY-MM | 结束观测期（包含该期）。 |
| `limit` | 否 | 查询·整数，1–1000 | 返回的最大期间数。默认值为 100。页面可能包含更少的期间；请继续使用 next_cursor。 |
| `cursor` | 否 | 查询·不透明字符串 | 上一页返回的next_cursor。 |
| `series_id` | 否 | 查询·UUID | 可选。某个序列的 `series_id`，取自先前的响应。省略则读取该国的默认序列。 |

## 响应

响应示例

```
{
  "source": {
    "publisher": "Country authorities; National Summary Data Pages; European Central Bank; IMF Staff Calculations",
    "distributor": "International Monetary Fund"
  },
  "seasonal_adjustment": "not_seasonally_adjusted",
  "aggregate": "broad_money",
  "definition_label": "Broad Money",
  "country": "KWT",
  "series_id": "94322188-0436-47b7-b127-01f3f73cfab9",
  "unit": "currency",
  "currency": "KWD",
  "observations": [
    {
      "period": "2026-01",
      "value": "42179995400"
    },
    {
      "period": "2026-02",
      "value": "42605920000"
    }
  ],
  "next_cursor": "eyJhZnRlciI6IjIwMjYtMDIi…"
}
```

历史示例请求 `limit=2`，所以有两行。这里的 `next_cursor` 已缩短，真实的是更长的不透明字符串。

| 字段 | 类型 | 必填 | 含义 |
| --- | --- | --- | --- |
| `source` | 对象 | 是 | 该数值的发布方。`publisher` 是 IMF 序列元数据中所列的原始发布机构，`distributor` 是 IMF，即 Narwhal 读取数据的来源。每个序列只有一个来源，适用于其全部历史。没有 `released_on`。 |
| `seasonal_adjustment` | 字符串 | 是 | Always `not_seasonally_adjusted`. |
| `aggregate` | 字符串 | 是 | Always `broad_money`. |
| `definition_label` | 字符串 | 是 | 该总量在 IMF 数据集中的名称：`Broad Money`。 |
| `country` | 字符串 | 是 | 所请求的大写 ISO 三字母国家代码。 |
| `series_id` | 字符串 | 是 | 该数值来自的序列。将其作为 `series_id` 传入，可再次读取同一序列。 |
| `unit` | 字符串 | 是 | Always `currency`. |
| `currency` | ISO 4217 字符串 | 是 | 该国的本国货币，例如 `KWD`。 |
| `observations` | 数组 | 是 | 按最早在前排列的观测值，每个期间一条。一页的观测值可能少于 `limit`。请沿 `next_cursor` 继续读取，直到它为 null。 |
| `observations[].period` | 字符串 | 是 | 观测值所代表的官方月份、季度或年份。 |
| `observations[].value` | 十进制字符串 | 是 | 月末的广义货币，以 `currency` 中本国货币的整数单位计。 |
| `observations[].status` | 字符串 | 否 | 仅当发布机构标注该数值时才提供：`estimated`、`break_in_series`、`definition_differs` 或 `break_in_series_and_definition_differs`。否则省略。 |
| `observations[].release_status` | 字符串 | 否 | 发布机构将该数值标为临时值时为 `preliminary`。否则省略。 |
| `next_cursor` | 字符串或 null | 是 | 将其原样作为 cursor 传入，即可读取下一页。最后一页为 null。 |

## API 错误码与额度

- `400 invalid_query`: A query parameter is unknown or repeated, `country` is not three uppercase letters, `series_id` is not a UUID, `start` or `end` is not a month in `YYYY-MM` format, `start` and `end` differ in format or `start` is after `end`, or `limit` is outside 1 to 1000. `version_id`, `version` and `as_of` are not accepted on this route.
- `400 invalid_cursor`: 游标格式错误，或是为其他筛选条件签发的。
- `409 snapshot_unavailable`: 游标已超过 24 小时，已过期。请不带 `cursor` 重新开始。
- `401 invalid_api_key`: Bearer 密钥缺失或被拒绝。
- `402 insufficient_credits`: 你的余额不足以支付此次调用。
- `404 series_not_found`: 该国家不在本页的覆盖列表中，`series_id` 不是该国的序列，或该范围内没有观测值。列表之外的国家会得到一条说明该系列不适用于它的详情。404 不收费。
- `429 rate_limit_exceeded`: 达到了网络或账户的短窗口限制。请在 `Retry-After` 之后重试。
- `503 economics_unavailable`: Narwhal 无法安全地提供已存储的序列。

Only a successful data response costs credit. 查看 [所有错误、响应头和重试规则](https://narwhalapi.com/zh/docs/errors.md)。

## 数据时效性

该路由返回 Narwhal 当前存储的序列，最早的在前。不带 `start` 时从最早存储的期间开始，因此要读取近期期间，请传入 `start`。它不接受 `as_of` 或 `version`，所以无法读取更早的版本。Narwhal 会省略缺失的观测值，而不是补全。

读取 [源检查、验证、已存储发布版本和失败检查的工作方式](https://narwhalapi.com/zh/docs/freshness.md)。

## 当前公开测试覆盖范围

4 国家

`DOM, KAZ, KWT, MUS`

月度数据，以该国本国货币的整数单位计，未经季节性调整。各国对广义货币的定义不同，因此只应在同一国家内比较水平。该序列由国际货币基金组织（IMF）分发，`source.publisher` 给出原始发布机构。期间是 `YYYY-MM` 格式的月份。其他任何国家返回 `404 not_found`，且不收费。

日频外汇数据可通过以下 API 获取： [外汇 API](https://narwhalapi.com/zh/api/fx.md)。

返回 [所有经济数据操作](https://narwhalapi.com/zh/docs/api/economics.md)。

## 从免费密钥开始

每月赠送 10 美元免费额度，无需绑卡。每月 10 美元免费额度，无需绑卡。

[获取免费 API 密钥](https://narwhalapi.com/zh/signup)

此页面对你有帮助吗?
