入门
在 Duaer 里查美国财政部财政数据
在 Duaer 里:美国财政部 Fiscal Data:每日公共债务总额、国债平均利率与财政部报告汇率。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「美国财政部财政数据」:美国财政部 Fiscal Data:每日公共债务总额、国债平均利率与财政部报告汇率。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 美国财政部财政数据,或打开 数据市场。相关:美国联邦机构预算、汇率。
适合做什么
- 查看美国国债总额的每日变化。
- 查美国财政部的季度汇率或各类国债平均利率。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → US Treasury fiscal data。
- 填 Dataset(debt、interest 或 exchange);Words 可选(如 China)。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/treasury?dataset=debt
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-treasury
description: >-
Duaer US Treasury fiscal data. US Treasury Fiscal Data: daily total public debt, average interest rates on Treasury securities, and Treasury reporting exchange rates.
One successful search uses 1 Duaer credit.
---
# Duaer US Treasury fiscal data
Duaer US Treasury fiscal data reads three official US Treasury datasets, newest first: debt to the penny, average interest rates by security, and quarterly reporting exchange rates.
## When to use
- Get the latest US total public debt.
- Look up the rate the US Treasury uses to convert a foreign currency.
## When not to use
- Market exchange rates. Use https://skills.duaer.com/exchange-rates.md.
- Agency budgets. Use https://skills.duaer.com/usaspending.md.
## Call
`GET https://api.duaer.com/v1/data/treasury?dataset=debt`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `dataset`.
- `dataset` — `debt` (debt to the penny), `interest` (average rates by security), or `exchange` (rates per US dollar).
- `words` — Optional. Filter rows, such as Treasury Bills or China.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/treasury?dataset=debt&limit=5` — the last five days of total public debt.
- `GET https://api.duaer.com/v1/data/treasury?dataset=exchange&words=China` — Treasury rates for the renminbi.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `date` — record date.
- Debt: `totalDebtUsd`, `debtHeldByPublicUsd`, `intragovernmentalUsd`.
- Interest: `security`, `securityType`, `averageRatePercent`.
- Exchange: `country`, `currency`, `perUsd`, `effectiveDate`.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/usaspending.md — Duaer US federal agency budgets
- https://skills.duaer.com/exchange-rates.md — Duaer Exchange rates
常见问题
Duaer 的美国财政部财政数据检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 美国财政部财政数据有哪几个数据集?
Duaer 美国财政部财政数据有三个:debt(每日国债总额)、interest(各类证券平均利率)、exchange(季度报告汇率)。
同组