主营构成通达信
查询各报告期主营收入、成本、毛利和毛利率。
查询各报告期主营收入、成本、毛利和毛利率。
输入参数
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
code | string | 是 | 股票代码:支持 000001、000001.SZ、sz000001;批量可传列表或英文逗号分隔字符串。 | |
period | string | 否 | 报告期,格式 YYYYMMDD;不传时返回全部可用报告期。 |
参数示例
# 单个标的
client.call("stock_business_composition_tdx", code="000001.SZ")
# 批量请求多个标的
client.call("stock_business_composition_tdx", code=["000034.SZ", "000001.SZ"])返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
instrument_id | string | AxData 统一证券代码,例如 000001.SZ。 |
symbol | string | 交易所原始六位代码。 |
report_period | date | 报告期。 |
dimension | string | 分类方式。 |
item_order | integer | 序号或层级。 |
item_name | string | 主营构成项目。 |
revenue | number | 主营收入。 |
revenue_ratio_pct | number | 收入占比,单位:%。 |
cost | number | 主营成本。 |
cost_ratio_pct | number | 成本占比,单位:%。 |
gross_profit | number | 毛利。 |
profit_ratio_pct | number | 利润占比,单位:%。 |
gross_margin_pct | number | 毛利率,单位:%。 |
调用示例
Python SDK
import axdata as ax
client = ax.AxDataClient()
rows = client.call(
"stock_business_composition_tdx",
code='000001.SZ',
)
HTTP API
POST /v1/request/stock_business_composition_tdx
Content-Type: application/json
{
"params": {
"code": "000001.SZ"
}
}
真实样例快照
展示插件接口目录里的固定 example.response,页面打开不会再次请求源端。
请求参数
{
"code": "000001.SZ"
}
响应样例
| report_period | dimension | item_order | item_name | revenue | revenue_ratio_pct | cost | cost_ratio_pct | gross_profit | profit_ratio_pct | gross_margin_pct | instrument_id | symbol |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 20251231 | 按产品 | 1 | 数字化产品 | 123456.78 | 62.3 | 80000.0 | 58.2 | 43456.78 | 66.1 | 35.2 | 000001.SZ | 000001 |
生成时间:2026-07-06T16:54:55+00:00