获取指定板块的当日盘口异动数据,包括各种异动类型(涨停板/火箭发射/大笔买卖等)的次数和个股
基本信息
| 项目 | 值 |
| 爬虫名称 | eastmoney_board_changes |
| 平台 | 东方财富 |
| 版本 | 1.0.0 |
| 作者 | noimank |
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
board_code | str | ✗ | BK0596 | 板块代码,如 BK0596(融资融券)、BK0420(航空机场)、BK0475(银行Ⅱ) 等 |
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": "eastmoney_board_changes",
"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": "eastmoney_board_changes",
"params": { ... }
}
)
result = resp.json()
返回格式
{
"success": true,
"message": "执行成功",
"data": { ... },
"execution_time": 1.23
}