China Safe
v0.2.1China SAFE (State Administration of Foreign Exchange) — 国家外汇管理局
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
china_fx_reserves
China's official reserve assets (官方储备资产) by month, from SAFE's English site: headline FX reserves (外汇储备), IMF reserve position, SDR holdings, gold (value + ounces), other reserve assets, and the total. MONTHLY data, published roughly one week after month-end (verified 2026-09-07: August 2026 reserves — USD 3,438.325bn FX reserves, USD 3,854.885bn total — were the newest data, published 2026-09-07). Values in 100-million USD/SDR as SAFE publishes them, plus a convenience *_usd_billion field for the two headline totals.
| Parameter | Type | Description |
|---|---|---|
months | integer | How many of the most recent months to return (default 12, max 24). |
china_balance_of_payments
China's quarterly balance of payments (国际收支平衡表) from SAFE's English site — current account (goods, services, primary/secondary income), capital and financial account, reserve-assets change, and net errors and omissions. QUARTERLY, with roughly a 3-month lag after quarter-end (verified 2026-09-07: latest available quarter was 2026Q1, published 2026-06-26 — this is the standard BPM6 release cadence, not a stale site; Q2 2026 was not yet due). Sign convention for the financial account: a positive value for assets is a net DECREASE, negative is a net INCREASE (SAFE's own footnote…
| Parameter | Type | Description |
|---|---|---|
currency | string | Reporting currency: "usd" (default), "rmb", or "sdr". |
quarters | integer | How many of the most recent quarters to return (default 8, max 40). |
china_external_debt
China's gross external debt position by sector (外债, since 2014Q4) from SAFE's English site — total, by maturity (short-term/long-term, on an original-contract basis), and by institutional sector (general government, central bank, other depository corporations, other sectors, direct-investment intercompany lending). QUARTERLY, roughly a 3-month lag after quarter-end (verified 2026-09-07: latest was 2026Q1, published 2026-06-26 — same normal BPM6 cadence as the balance-of-payments release). Values in 100-million USD.
| Parameter | Type | Description |
|---|---|---|
quarters | integer | How many of the most recent quarters to return (default 8, max 40). |
china_safe_releases
Lists the actual publish dates of SAFE's reserves/BOP/external-debt English pages, straight from each page's own PubDate metadata and its attached file's upload timestamp — NOT the article's permalink date, which is frequently years stale (SAFE republishes data in place at old URLs; a 2026 reserves table can sit at a 2021-dated link). Use this to check how current the other three tools' data is before citing it.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max releases to return (default 6, max 15). |