财务取数(单公司多期 / 多公司单期)
company_records读取 A 股上市公司财报明细(China A-share financial statements):唯一取数入口,覆盖利润表 income、资产负债表 balance、现金流量表 cashflow、业绩预告 predict。五种口径——new 最新报告期(latest)、quarter_t 单季度同比(single-quarter YoY)、quarter_h 单季度环比(single-quarter QoQ)、ttm 逐季度滚动四季合计(trailing twelve months)、year 年度(annual)。scode 传 1 个 → 单公司多期(periods 1–10,默认 1);传 2–10 个 → 多公司单期横切(省略 report_date 时取所选公司该口径的最近报告期)。多公司不支持 periods,periods 与 report_date 互斥(dimension_conflict)。repotype=basic/operation 可按指标配置把该报表细分为基础指标 / 运营指标,省略返回该报表全部指标。format=long 一行一指标;format=wide 一行一(公司, 报告期, 报表)的指标对象;业绩预告(predict)仅支持 format=long。结果上界按报表计:long 每张 250 行 / wide 每张 10 行,reponame 最多 4 张(逗号分隔);超出返回 result_too_large,不截断。notice_date_to 按当前公告日过滤(重述会移动公告日),notice_date_from 做增量(含重述)。数值为原始值(元),增幅以百分点表示(12.3 即 12.3%)。单公司与多公司横切均不要求 VIP;按实际返回与数据价值权重计积分,空结果不计。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scode": "<scode>",
"reponame": "<reponame>",
"repoterm": "<repoterm>"
},
"name": "company_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scode | Yes | A 股 6 位代码列表(1–10 个):1 个=单公司多期,多个=多公司单期横切;只需传一次数组 | |
| format | No | long 一行一指标;wide 一行一(公司, 报告期) | long |
| periods | No | 报告期数 1–10,默认 1(最近一期),仅单公司可用(多公司传会报 dimension_conflict) | |
| reponame | Yes | 报表名:income 利润表(income statement)/ balance 资产负债表(balance sheet)/ cashflow 现金流量表(cash flow statement)/ predict 业绩预告;多张报表用逗号分隔(最多 4 个),如 income,balance | |
| repoterm | Yes | 单一口径:new 最新报告期 latest / quarter_t 单季度同比 YoY / quarter_h 单季度环比 QoQ / ttm 逐季度 TTM / year 年度 annual | |
| repotype | No | 指标类别:basic 基础指标 / operation 运营指标;省略=该报表全部指标 | |
| report_date | No | 报告期 YYYY-MM-DD;与 periods 互斥,多公司不传则取最近报告期 | |
| repoitem_key | No | 指标 key 列表;省略=该报表全部指标 | |
| notice_date_to | No | 公告日上界(含)YYYY-MM-DD,用于时点快照 | |
| notice_date_from | No | 公告日下界(含)YYYY-MM-DD;响应 meta.notice_date_max 可作下次水位线 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes | ||
| page | Yes | ||
| quota | Yes | ||
| format | Yes | ||
| object | Yes | ||
| dataset | No |