agentsclimarketplace

Stock balance single stock all periods

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

Get all periods' balance sheet (资产负债表) for a single stock. Use when user asks about 资产负债表, 单只股票资产负债表, balance sheet, single stock all report periods.From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill stock-balance-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.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

查询单只股票所有报告期资产负债表

接口说明

项目说明
接口名称查询单票所有报告期资产负债表
外部接口GET /api/v1/market/data/finance/balance
请求方式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", "publish_date", "year", "report_type", "report_type_cn", "report_form_type", "t_assets", "t_equity", ... } ],
  "total_pages": 1,
  "total_items": 23
}

字段说明(BalanceItem)

字段名类型是否可为空说明单位
stock_codeString否股票交易代码,带 .SZ/.SH/.BJ 后缀-
stock_nameString否上市公司股票名称-
publish_dateString否报告发布日期,YYYY-MM-DD-
yearint否报告所属年度-
report_typeString否报告期类型:q1/q2/q3/annual-
report_type_cnString否报告期类型中文:一季报/半年报/三季报/年报-
report_form_typeString否报表类型:合并未调整/合并调整-
t_assetsfloat否资产总计元
total_assets_yoyfloat是总资产同比增长率,无上期时为 null%
t_fixed_assetsfloat否固定资产合计元
cash_equivalentsfloat否货币资金元
monetary_funds_yoyfloat是货币资金同比增长率%
account_receivablefloat否应收账款元
accounts_receivable_yoyfloat是应收账款同比增长率%
inventoryfloat否存货元
inventory_yoyfloat是存货同比增长率%
t_liabilityfloat否负债总计元
total_liabilities_yoyfloat是总负债同比增长率%
accounts_payablefloat否应付账款元
accounts_payable_yoyfloat是应付账款同比增长率%
advance_receiptsfloat是预收账款元
advance_receipts_yoyfloat是预收账款同比增长率%
t_equityfloat否所有者权益合计元
total_equity_yoyfloat是所有者权益合计同比增长率%
asset_liability_ratiofloat是资产负债率(衍生)%

注意事项

  • 股票代码格式: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.