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

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

`date` 为美东交易日。`start_time` 含起点、`end_time` 不含终点，支持 HH:MM:SS 或 HH:MM:SS.sss，日终可写 24:00:00。`contract` 为精确 OCC 合约，单次最多 1 小时。`include_quote` 默认为 `false`。

```bash theme={null}
curl -H "Authorization: Bearer $DATA_API_KEY" \
  'https://api.yehangshe.com/v1/options/contract-prints/SPXW261125P07200000?date=2026-11-24&start_time=10:28:20&end_time=10:28:31&include_quote=true'
```

## 读懂结果

`trades` 每笔包含 `traded_at`、`price_usd`、`size_contracts` 和 `condition`。`include_quote=true` 时还包含 `quoted_at`、`bid_usd`、`ask_usd`、`bid_size` 和 `ask_size`。报价量按张计。响应里的时间戳为 UTC。

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

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

```json theme={null}
{
  "traded_at": "2026-11-24T15:28:21.249Z",
  "price_usd": 80.6,
  "size_contracts": 1,
  "condition": 18,
  "quoted_at": "2026-11-24T15:28:21.233Z",
  "bid_usd": 79.8,
  "ask_usd": 80.6,
  "bid_size": 4,
  "ask_size": 4
}
```

## 计量

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


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