入门
在 Duaer 里查汇率
在 Duaer 里:欧洲央行约 30 种货币的参考汇率,可查最新、1999 年以来任一工作日或一个日期区间。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「汇率」:欧洲央行约 30 种货币的参考汇率,可查最新、1999 年以来任一工作日或一个日期区间。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 汇率,或打开 数据市场。相关:IMF 经济指标、世界银行指标。
适合做什么
- 把发票或销售金额折算成同一币种写进报告。
- 画出某货币对几周内的走势。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → Exchange rates。
- 填 Base(如 USD)与 Currencies(如 CNY,EUR);可选 Date(某一天)或 From/To(区间)。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/exchange-rates?base=USD&symbols=CNY,EUR,JPY
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-exchange-rates
description: >-
Duaer Exchange rates. European Central Bank reference exchange rates for about 30 currencies, latest or on any working day since 1999, one day or a date range.
One successful search uses 1 Duaer credit.
---
# Duaer Exchange rates
Duaer Exchange rates returns ECB reference rates through Frankfurter. Rates are published once per working day around 16:00 CET; weekends and holidays have no new rate.
## When to use
- Convert invoice or sales amounts to one currency for a report.
- Chart a currency pair over a few weeks.
## When not to use
- Intraday or trading prices. ECB rates are one daily reference fix.
- Currencies the ECB does not publish, such as many African and Central Asian ones.
## Call
`GET https://api.duaer.com/v1/data/exchange-rates?base=USD&symbols=CNY,EUR,JPY`
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 at least one of `base`, `symbols`, `date`, or `from`.
- `base` — Three-letter currency code to convert from. Default EUR.
- `symbols` — Optional. Target codes joined by commas, such as CNY,EUR,JPY. Default all.
- `date` — Optional. One past day, YYYY-MM-DD. Data starts 1999-01-04.
- `from` — Optional. Start of a date range, YYYY-MM-DD.
- `to` — Optional. End of a date range, YYYY-MM-DD. Default today.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/exchange-rates?base=USD&symbols=CNY,EUR,JPY` — latest USD rates.
- `GET https://api.duaer.com/v1/data/exchange-rates?base=EUR&symbols=CNY&from=2024-01-01&to=2024-01-19` — EUR to CNY for three weeks.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `base`, `currency` — from and to currency codes.
- `rate` — units of currency for 1 base.
- `date` — ECB publication day.
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/imf.md — Duaer IMF indicators
- https://skills.duaer.com/world-bank.md — Duaer World Bank indicators
常见问题
Duaer 的汇率检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
为什么 Duaer 汇率在周日没有数据?
欧洲央行只在工作日发布参考汇率;Duaer 返回区间内各工作日的汇率。
同组