A股历史日线腾讯财经
临时获取腾讯财经A股历史日线数据,默认不入库。
临时请求单只 A 股日线小窗口,默认不入库。
输入参数
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
code | string | 是 | 证券代码,支持 000001.SZ、sh600000、000001。 | |
start_date | string | 否 | 开始日期,YYYYMMDD 或 YYYY-MM-DD;默认 20240101。 | "20240101" |
end_date | string | 否 | 结束日期,YYYYMMDD 或 YYYY-MM-DD;默认等于 start_date。 | |
adjust | string | 否 | 复权类型:none 不复权、qfq 前复权、hfq 后复权;默认 none。 | "none" |
limit | integer | 否 | 日期过滤后最多返回行数,默认 120,最大 640。 | 120 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
instrument_id | string | AxData 统一证券代码。 |
symbol | string | 六位证券代码。 |
exchange | string | 交易所代码:SSE、SZSE、BSE。 |
asset_type | string | 资产类型,固定为 stock。 |
trade_date | date | 交易日期,格式 YYYYMMDD。 |
adjust | string | 复权类型:none、qfq、hfq。 |
open | number | 开盘价,单位:元。 |
close | number | 收盘价,单位:元。 |
high | number | 最高价,单位:元。 |
low | number | 最低价,单位:元。 |
volume | number | 成交量,沿用腾讯源端日线口径。 |
amount | number | 成交额,沿用腾讯源端日线口径。 |
调用示例
Python SDK
import axdata as ax
client = ax.AxDataClient()
rows = client.call(
"stock_zh_a_hist_tx",
adjust='none',
code='000001.SZ',
end_date='20240102',
limit=1,
start_date='20240102',
)
HTTP API
POST /v1/request/stock_zh_a_hist_tx
Content-Type: application/json
{
"params": {
"code": "000001.SZ",
"start_date": "20240102",
"end_date": "20240102",
"adjust": "none",
"limit": 1
}
}
真实样例快照
展示插件接口目录里的固定 example.response,页面打开不会再次请求源端。
请求参数
{
"code": "000001.SZ",
"start_date": "20240102",
"end_date": "20240102",
"adjust": "none",
"limit": 1
}
响应样例
| instrument_id | symbol | exchange | asset_type | trade_date | adjust | open | close | high | low | volume | amount |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 000001.SZ | 000001 | SZSE | stock | 20240102 | none | 9.39 | 9.21 | 9.42 | 9.21 | 1158366.0 | 107574.23 |
生成时间:2026-07-06T16:54:55+00:00