agentsclimarketplace

Eastmoney board daily ohlc

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/eastmoney-board-daily-ohlc

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill eastmoney-board-daily-ohlc

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

查询东财单板块历史 OHLC。当用户需要查询指定东财板块历史 OHLC 数据,支持日期范围过滤与分页,或了解东财单板块历史 OHLC时使用。

SKILL.md

3.5 KB, as published. Nobody here has run it

查询东财单板块历史 OHLC

接口说明

项目说明
接口名称查询东财单板块历史 OHLC
外部接口/api/v1/market/data/eastmoney-board-daily-ohlc
请求方式GET
适用场景查询指定东财板块历史 OHLC 数据,支持日期范围过滤与分页

请求参数

参数名类型是否必填描述取值示例备注
board_codestring板块代码BK1024BK 前缀
start_datestring起始日期(含)2021-01-01格式 YYYY-MM-DDYYYYMMDD;不传则从最早开始
end_datestring截止日期(含)2021-12-31格式 YYYY-MM-DDYYYYMMDD;不传则到最晚为止
pageint页码,从 1 开始1默认 1
page_sizeint每页记录数20默认 50

执行方式

通过根目录的 run.py 调用(推荐):

# 查询板块全部历史 OHLC
python <RUN_PY> eastmoney-board-daily-ohlc --board_code BK1024 --page 1 --page_size 20

# 指定日期范围
python <RUN_PY> eastmoney-board-daily-ohlc --board_code BK1024 --start_date 2021-01-01 --end_date 2021-12-31 --page 1 --page_size 20

# 自动翻页获取全量数据
python <RUN_PY> eastmoney-board-daily-ohlc --board_code BK1024 --all

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径,参见主 SKILL.md 的「调用方式」说明。

响应结构

{
    "items": [
        {
            "board_code": "BK1024",
            "board_name": "绿色电力",
            "market": "90",
            "date": "2021-10-18",
            "open": "1001.53",
            "close": "1037.67",
            "high": "1041.82",
            "low": "1001.53",
            "volume": "52669555",
            "turnover": "43012845568",
            "amplitude": "4.03",
            "change_rate": "3.77",
            "change": "37.67",
            "turnover_rate": "1.03"
        }
    ],
    "total_pages": 1,
    "total_items": 1
}

顶层字段说明

字段名类型是否可为空说明
itemsArray当前页 OHLC 数据列表
total_pagesint总页数
total_itemsint总记录数

items 元素字段说明(BoardDailyOhlc)

字段名类型是否可为空说明单位
board_codeString板块代码-
board_nameString板块名称-
marketString市场编码-
dateString交易日期,格式 YYYY-MM-DD-
openString开盘价-
closeString收盘价-
highString最高价-
lowString最低价-
volumeString成交量
turnoverString成交额
amplitudeString振幅%
change_rateString涨跌幅%
changeString涨跌额-
turnover_rateString换手率%

注意事项

  • board_code 为必填参数,可通过 eastmoney-concept-boards 获取板块代码
  • 历史 OHLC 中多数数值字段以字符串返回
  • 板块代码对行业板块和概念板块通用

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.