agentsclimarketplace

Stock income single stock all periods

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/stock-income-single-stock-all-periods

Get all periods' income statement (利润表) for a single stock. Use when user asks about 利润表, 单只股票利润表, income statement, single stock all report periods.From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-income-single-stock-all-periods

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

SKILL.md

3.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

查询单只股票所有报告期利润表

接口说明

项目说明
接口名称查询单票所有报告期利润表
外部接口GET /api/v1/market/data/finance/income
请求方式GET
适用场景获取 A 股上市公司单只股票所有报告期的利润表,支持沪深京股票

请求参数

说明:stock_code 为必填项,仅支持单次请求一个股票代码。

参数名类型是否必填描述取值示例备注
stock_codestring是单个股票代码603323.SHA 股需为 6 位数字+后缀(SH/SZ/BJ),单次仅支持一个代码

执行方式

python scripts/handler.py --stock-code 603323.SH

响应结构

返回报表信息数组及分页信息:

{
  "items": [ { "stock_code", "stock_name", "year", "report_type", "report_type_cn", "publish_date", "report_form_type", "t_revenue", "n_profit", ... } ],
  "total_pages": 1,
  "total_items": 23
}

字段说明(IncomeItem)

字段名类型是否可为空说明单位
stock_codeString否股票交易代码,带 .SZ/.SH/.BJ 后缀-
stock_nameString否上市公司股票名称-
yearint否报告所属年度-
report_typeString否报告期类型:q1/q2/q3/annual-
report_type_cnString否报告期类型中文:一季报/半年报/三季报/年报-
publish_dateString否报告发布日期,YYYY-MM-DD-
report_form_typeString否报表类型:合并未调整/合并调整-
t_revenuefloat否营业总收入元
t_revenue_yoyfloat是营业总收入同比增长率,无上期时为 null%
costfloat否营业支出(主营业务成本)元
cost_yoyfloat是主营业务成本同比增长率%
t_costfloat否营业总支出元
t_cost_yoyfloat是营业总支出同比增长率%
sale_expensefloat否销售费用元
sale_expense_yoyfloat是销售费用同比增长率%
manag_expensefloat否管理费用元
manag_expense_yoyfloat是管理费用同比增长率%
financial_costfloat否财务费用元
financial_cost_yoyfloat是财务费用同比增长率%
profitfloat否营业利润元
profit_yoyfloat是营业利润同比增长率%
t_profitfloat否利润总额元
t_profit_yoyfloat是利润总额同比增长率%
n_profitfloat否净利润元
n_profit_yoyfloat是净利润同比增长率%
parcomp_n_profitfloat否扣非归母净利润元
parcomp_n_profit_yoyfloat是扣非归母净利润同比增长率%

注意事项

  • 股票代码格式:6 位数字 + 市场后缀(SH=上交所,SZ=深交所,BJ=北交所),单次仅支持一个代码。
  • report_type 取值:q1(一季报)、q2(半年报)、q3(三季报)、annual(年报)。
  • 金额类字段单位为元;同比类字段单位为 %,无上期数据时为 null。

What ships with it: 1 file

1.5 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.