agentsclimarketplace

Stock ipos

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-ipos

获取股票 IPO 列表。当用户需要获取 A 股 IPO 列表,含发行价格、发行数量、申购日期、上市日期等,支持分页查询,或了解股票 IPO 列表时使用。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-ipos

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

SKILL.md

3.0 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

获取股票 IPO 列表

接口说明

项目说明
接口名称获取股票 IPO 列表
外部接口/api/v1/market/data/stock-ipos
请求方式GET / POST
适用场景获取 A 股 IPO 列表,含发行价格、发行数量、申购日期、上市日期等,支持分页查询

请求参数

参数名类型是否必填描述取值示例备注
pageint是页码,从 1 开始1必须大于等于 1
page_sizeint是每页记录数20必须大于等于 1,建议不超过 100

执行方式

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

# 获取第 1 页,每页 20 条
python <RUN_PY> stock-ipos --page 1 --page_size 20

# 获取第 2 页,每页 50 条
python <RUN_PY> stock-ipos --page 2 --page_size 50

# 获取全量数据(自动翻页合并)
python <RUN_PY> stock-ipos --all

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

响应结构

{
    "items": [
        {
            "symbol": "600989.SH",
            "industry_pe": 15.8,
            "listing_date": "2019-05-16",
            "max_subscription_shares": 120000,
            "online_shares": 600000000,
            "pe": 22.5,
            "price": "11.25",
            "shares": 734000000,
            "subscription_date": "2019-05-10",
            "subscription_symbol_id": "730989"
        }
    ],
    "total_pages": 10,
    "total_items": 200
}

顶层字段说明

字段名类型是否可为空说明
itemsArray否当前页 IPO 列表
total_pagesint否总页数
total_itemsint否总记录数(未分页前)

items 元素字段说明(StockIpo)

字段名类型是否可为空说明单位
symbolString否标的代码,带 .SZ/.SH/.BJ 市场后缀-
industry_pefloat是行业市盈率-
listing_dateString是上市日期,格式 YYYY-MM-DD-
max_subscription_sharesint是申购上限股
online_sharesint否网上发行数量股
pefloat是发行市盈率-
priceString是发行价格元
sharesint否发行数量股
subscription_dateString是申购日期,格式 YYYY-MM-DD-
subscription_symbol_idString是申购代码-

注意事项

  • page 和 page_size 为必填项
  • 如需全量数据,按 page 递增循环请求至 total_pages,合并所有 items
  • 可为空字段(如 industry_pe、listing_date 等)可能返回 null,展示时需做空值处理
  • price 为字符串类型,比较或计算前需转为数值

What ships with it: 1 file

2.3 KB alongside SKILL.md, 1 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. 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.