---
title: "匯率 API 參考 | Narwhal API"
description: "匯率 API 提供目前匯率、貨幣換算與歷史匯率等操作，可透過 REST 與 MCP 呼叫。本頁整理各項匯率路由的主要用途與使用方式，讓你能更快速地找到需要的端點。"
url: "https://narwhalapi.com/zh-tw/docs/api/fx"
---

# 匯率 API 參考文件

透過 REST 和 MCP 取得目前匯率、貨幣換算及歷史資料。

All four operations are live. They use one Narwhal key and the same credit.

## 四項操作

| 操作 | REST 路徑 | MCP 工具 |
| --- | --- | --- |
| [當前匯率](https://narwhalapi.com/zh-tw/docs/api/fx/rates.md) | `/v1/fx/rates/{base}` | `fx_get_rates` |
| [貨幣換算](https://narwhalapi.com/zh-tw/docs/api/fx/conversion.md) | `/v1/fx/convert` | `fx_convert_currency` |
| [歷史匯率](https://narwhalapi.com/zh-tw/docs/api/fx/history.md) | `/v1/fx/rates/{base}/observations` | `fx_get_rate_history` |
| [價格柱](https://narwhalapi.com/zh-tw/docs/api/fx/history.md#bars) | `/v1/fx/rates/{base}/bars` | `fx_get_rate_bars` |

## 共用規則

- 每單位基準貨幣可兌換的報價貨幣金額，就是回傳的匯率。
- 匯率和金額以十進位字串表示。
- 目前匯率保留各自的時間戳記與過期狀態。
- REST 與 MCP 使用相同的資料與額度。
- 錯誤使用 Narwhal 共享的問題結構。

## 涵蓋範圍

目前匯率查詢接受受支援且仍在流通的 ISO 4217 貨幣。各貨幣的歷史資料起始日期不同，並保留實際的資料缺漏。

[查看外匯涵蓋範圍](https://narwhalapi.com/zh-tw/coverage.md#fx) · [閱讀方法說明](https://narwhalapi.com/zh-tw/methodology/fx.md) · [匯率 API](https://narwhalapi.com/zh-tw/api/fx.md)

## 從免費金鑰開始

每月 10 美元免費額度，無需綁卡。每月 10 美元免費額度，無需綁卡。

[取得免費 API 金鑰](https://narwhalapi.com/zh-tw/signup)

此頁面對你有幫助嗎?
