> ## 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/prints/{ticker}`

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

`date` 为美东交易日。`start_time` 含起点、`end_time` 不含终点，支持 HH:MM:SS 或 HH:MM:SS.sss，日终可写 24:00:00。单次最多 5 分钟。合并行情有 15 分钟延迟，区间终点须至少早于当前时间 15 分钟。

```bash theme={null}
curl -H "Authorization: Bearer $DATA_API_KEY" \
  'https://api.yehangshe.com/v1/stocks/prints/SPY?date=2026-11-24&start_time=09:30:00&end_time=09:35:00'
```

## 读懂结果

`trades` 中每笔带 `traded_at`、`price_usd`、`size_shares` 和 `condition`。同一毫秒内的多笔成交分别保留。响应里的时间戳为 UTC。

`total_trades` 为本次查询总条数，`returned_trades` 为本页条数。`limit` 默认 400，上限 1000。每页还受响应大小限制。把 `_meta.next_cursor` 传给相同查询的 `cursor`，直到返回 `null`。

一次实际响应中的一条记录如下。

```json theme={null}
{
  "traded_at": "2026-11-24T14:30:00.000Z",
  "price_usd": 715.18,
  "size_shares": 100,
  "condition": 1
}
```

## 计量

每 5 笔成交 1 unit，按本页实际笔数向上取整。


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