获取个股/ETF指定交易日的分时数据(分钟级价格/均价/成交量),可查询任意历史交易日,
基本信息
| 项目 | 值 |
| 爬虫名称 | sina_stock_minline |
| 平台 | 新浪财经 |
| 版本 | 1.0.0 |
| 作者 | noimank |
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
symbol | str | ✓ | - | 证券标识,支持两种格式:① 新浪前缀格式,如 'sh600519'(贵州茅台)、'sz000001'(平安银行);② 裸 6 位代码自动推断市场:92/8/4 开头→北交所,6/5/9 开头→沪市,其余→深市 |
date | str | ✓ | - | 交易日,格式 YYYY-MM-DD,如 2026-08-13;可查询任意历史交易日 |
data_format | Literal['json', 'dict', 'markdown', 'string'] | ✗ | json | 返回数据格式,可选值:json, dict, string, markdown |
使用示例
API 调用
curl -X POST http://localhost:8380/api/v1/spiders/run -H "Content-Type: application/json" -d '{
"spider_name": "sina_stock_minline",
"params": { ... }
}'
Python SDK
import httpx
async with httpx.AsyncClient() as client:
resp = await client.post(
"http://localhost:8380/api/v1/spiders/run",
json={
"spider_name": "sina_stock_minline",
"params": { ... }
}
)
result = resp.json()
返回格式
{
"success": true,
"message": "执行成功",
"data": { ... },
"execution_time": 1.23
}