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

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

`date` 和 `time` 指定美东交易日与时刻，精确到毫秒。合并行情有 15 分钟延迟，所查时刻须至少早于当前时间 15 分钟。

```bash theme={null}
curl -H "Authorization: Bearer $DATA_API_KEY" \
  'https://api.yehangshe.com/v1/stocks/at-time/SPY?date=2026-11-24&time=10:30:17.250'
```

## 读懂结果

`requested_at` 为请求时刻。成交一侧含 `traded_at`、`price_usd`、`size_shares`、`condition`，报价一侧含 `quoted_at`、`bid_usd`、`ask_usd`、`bid_size`、`ask_size`。两侧独立取值，一侧缺失时对应字段为 `null`。响应里的时间戳为 UTC。

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

```json theme={null}
{
  "ticker": "SPY",
  "requested_at": "2026-11-24T15:30:17.250Z",
  "traded_at": "2026-11-24T15:30:17.227Z",
  "price_usd": 714.674,
  "size_shares": 1,
  "condition": 115,
  "quoted_at": "2026-11-24T15:30:17.248Z",
  "bid_usd": 714.69,
  "ask_usd": 714.72,
  "bid_size": 120,
  "ask_size": 160,
  "as_of": "2026-11-24T15:30:17.248Z"
}
```

## 计量

每次成功响应 1 unit。


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