跳转至

获取营业部收益率排行榜数据,包括营业部上榜次数、收益率、交易金额等

基本信息

项目
爬虫名称 eastmoney_department_return_ranking
平台 东方财富
版本 1.0.0
作者 noimank

请求参数

参数名 类型 必填 默认值 说明
statistics_cycle Literal['01', '02', '03', '04'] 01 统计周期:01=近1月,02=近3月,03=近6月,04=近1年
limit int 50 获取数据条数
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_department_return_ranking",
    "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_department_return_ranking",
            "params": { ... }
        }
    )
    result = resp.json()

返回格式

{
  "success": true,
  "message": "执行成功",
  "data": { ... },
  "execution_time": 1.23
}