> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yehangshe.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 股票最近成交

> 查看一只股票最近一笔实际成交的时间、价格和股数。

查看一只股票最近一笔实际成交的时间、价格和股数。

Pro 和 Pro+ 共用此端点。当前 Key 可用的端点见 `GET /v1/discover`。

## 请求

`GET /v1/stocks/last-trade/{ticker}`

MCP 命令为 `stocks.last_trade`。需要 `derived:read` 或 `data-api:read` scope。

`ticker` 为一只股票或 ETF。

```bash theme={null}
curl -H "Authorization: Bearer $DATA_API_KEY" \
  'https://api.yehangshe.com/v1/stocks/last-trade/BRKB'
```

## 读懂结果

`price_usd` 为成交价，`size_shares` 为股数，`condition` 为成交条件码，`traded_at` 为真实发生时间。快照覆盖部分成交场所，盘外可能返回上一交易日的最后一笔。响应里的时间戳为 UTC。

一次实际响应的 `data` 字段如下。

```json theme={null}
{
  "ticker": "BRKB",
  "traded_at": "2026-11-25T09:17:43.721Z",
  "price_usd": 581,
  "size_shares": 63,
  "condition": 1,
  "as_of": "2026-11-25T09:17:43.721Z"
}
```

## 计量

每次成功响应 1 unit。盘中如需持续接收股票或 ETF 的实时逐笔成交流，可使用 [股票逐笔成交与指数点位 WebSocket 推送](https://docs.yehangshe.com/api/streaming/stocks-and-indices.md)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.