跳转至

← 返回接口目录

F10-盈利预测

作用

查询盈利预测和评级统计,包括未来 EPS、归母净利润、营业收入预测、历史实际值和预测机构数量。

项目 内容
调用方法 client.f10.profit_forecast(code)
底层 Entry CWServ.tdxf10_gg_ybpj
返回模型 F10Response

示例

from eltdx import F10Client

f10 = F10Client(timeout=3)
response = f10.profit_forecast("000034")

print(response.rows[:5])

参数

参数 含义
code 证券代码

请求对照

Entry = "CWServ.tdxf10_gg_ybpj"
body = {"Params": ["000034", "ylyctj"]}

返回示例

response.tables[0].rows[0]
# {
#     "nyear": "2026",
#     "flag": 0
# }

response.tables[1].rows[0]
# {
#     "T036": 1.183,
#     "T037": 1.513,
#     "T038": 2.0,
#     "T033": 85636.75,
#     "T034": 109685.5,
#     "T035": 145129.25,
#     "T021": 16179042.5,
#     "T022": 18074898.75,
#     "T023": 20479405.0
# }

返回表

profit_forecast() 会返回多张表,不只看 response.rows

ResultSet 含义
table0 预测起始年份和对齐标记
table1 未来三年预测值
table2 历史实际值
table3 市盈率计算用市值 / 净利润
table4 预测机构数量提示

字段对照

原生字段 中文含义
table0 nyear 预测起始年份
table0 flag 年份对齐标记
table1 T036/T037/T038 未来三年预测每股收益
table1 T033/T034/T035 未来三年预测归母净利润
table1 T021/T022/T023 未来三年预测营业收入
table2 T002 年份
table2 T055 历史每股收益
table2 T018 历史归母净利润
table4 t023 预测机构数量

多表结果建议直接遍历:

for table in response.tables:
    print(table.key, table.columns, table.rows[:2])