---
title: "汇率 API 如何处理周末 | Narwhal API"
description: "休市时，如何结合市场交易时段、时间戳和过时状态解读外汇汇率。"
url: "https://narwhalapi.com/zh/guides/fx/exchange-rates-on-weekends"
---

# 汇率 API 如何处理周末

休市时，如何结合市场交易时段、时间戳和过时状态解读外汇汇率。

## 快速解答

Narwhal 会保留最近一次已接受的汇率、其时间戳和过时状态，并将市场交易时段标记为周末。它不会假装市场处于开市状态。

## 市场交易时段提供背景信息

响应将市场标记为开市、周末或银行间市场休市。该状态适用于整个响应。

## 每个汇率都有各自的时效性

不同货币可能有不同的生效时间。因此，每个汇率都保留自己的时间戳和过时标志。

## 由你的应用决定

应结合市场交易时段、时间戳和过时状态进行判断。不要替换缺失的汇率，也不要删除其时间信息。

发布于 2026年8月31日。最近核查于 2026年8月31日。

## 前往对应参考文档

- [Narwhal API 参考文档 查看API参考](https://narwhalapi.com/zh/docs/api/fx.md)
- [Narwhal API 参考文档 打开当前汇率参考](https://narwhalapi.com/zh/docs/api/fx/rates.md)
- [方法论 阅读外汇数据方法说明](https://narwhalapi.com/zh/methodology/fx.md)
- [操作指南 历史汇率查询：获取过去某一天的汇率](https://narwhalapi.com/zh/how-to/get-an-exchange-rate-on-a-past-date.md)
- [周末汇率时效性](https://exchangerate.dev/learn/weekend-staleness)

## 指南

- [基准货币和报价货币详解](https://narwhalapi.com/zh/guides/fx/base-and-quote-currency.md)
- [货币换算的工作方式](https://narwhalapi.com/zh/guides/fx/how-currency-conversion-works.md)
- [汇率精度和舍入](https://narwhalapi.com/zh/guides/fx/exchange-rate-precision-and-rounding.md)
- [交叉汇率详解](https://narwhalapi.com/zh/guides/fx/cross-rates-explained.md)
- [汇率时间戳和数据时效性](https://narwhalapi.com/zh/guides/fx/exchange-rate-timestamps-and-freshness.md)
- [所有指南](https://narwhalapi.com/zh/guides.md)

## 从免费密钥开始

每月赠送 10 美元免费额度，无需绑卡。每月 10 美元免费额度，无需绑卡。

[获取免费 API 密钥](https://narwhalapi.com/zh/signup)
