---
title: "API reference：路由、字段与示例 | Narwhal API"
description: "经济数据、外汇、大宗商品、收益率曲线、预测市场、日历、市场和所有权的 API 参考文档。查看路径、字段和示例。"
url: "https://narwhalapi.com/zh/docs/api"
---

# Narwhal API 参考文档

经济数据、外汇、大宗商品、收益率曲线、预测市场、日历、市场和所有权的 API 参考文档。查看路径、字段和示例。

## 选择 API

- [经济数据 API 来自官方发布机构的 CPI、劳动力、GDP 和贸易数据。](https://narwhalapi.com/zh/docs/api/economics.md)
- [外汇 API 当前汇率、换算和历史数据。](https://narwhalapi.com/zh/docs/api/fx.md)
- [节假日 API 全国假日、地区假日和补休假日。](https://narwhalapi.com/zh/docs/api/calendars.md)
- [棕榈油 API 来自印度尼西亚和马来西亚的 CPO 和 FFB 价格。](https://narwhalapi.com/zh/docs/api/commodities.md)
- [现货金属 API 贵金属、铜、WTI 和布伦特原油。](https://narwhalapi.com/zh/docs/api/commodities/spot.md)
- [经济数据发布日历 发布日期和每个已发布的版本。](https://narwhalapi.com/zh/docs/api/economic-calendar.md)
- [Exchange closures Closed, early close and late open days by exchange.](https://narwhalapi.com/docs/api/calendars/exchange-closures.md)
- [Exchange status Whether an exchange is open at an instant, with the next open and close.](https://narwhalapi.com/docs/api/calendars/exchange-status.md)
- [Exchange list Every exchange with a published calendar, its time zone and sessions.](https://narwhalapi.com/docs/api/calendars/exchange-list.md)
- [工作日天数 Add business days to a date or count them between two dates.](https://narwhalapi.com/docs/api/calendars/business-days.md)
- [预测 API Probabilities by topic and event, with history.](https://narwhalapi.com/zh/docs/api/predictions.md)
- [贸易数据 API 按伙伴国和 HS 产品划分的货物进出口。](https://narwhalapi.com/zh/docs/api/trade.md)
- [任意序列 API 按 ID 查询世界银行和加拿大统计局的序列。](https://narwhalapi.com/zh/docs/api/any-series.md)
- [申报文件参考 Statements, filing lists and 5% holder reports.](https://narwhalapi.com/zh/docs/api/filings.md)
- [政策利率 Central-bank policy rates, reserves and balance sheets.](https://narwhalapi.com/zh/docs/api/economics/policy-rate.md)
- [价格流 已停止。请通过 REST 路由读取实时价格。](https://narwhalapi.com/zh/docs/api/prices-stream.md)

## 共享基础信息

- 每个数据请求都需要 Bearer 密钥。
- REST 和 MCP 使用同一额度。
- 响应中保留日期、单位、货币和时效性信息。
- 错误采用统一的错误响应格式，其中包含 `request_id`。

REST 起始于 `https://api.narwhalapi.com/v1`。MCP 地址为 `https://api.narwhalapi.com/mcp`。

- [OpenAPI](https://api.narwhalapi.com/openapi.json)
- [API Key 认证与安全使用](https://narwhalapi.com/zh/docs/authentication.md)
- [API 错误码与额度](https://narwhalapi.com/zh/docs/errors.md)

此页面对你有帮助吗?
