基本面

机构共识

GEThttps://openapi.longbridge.com/v1/quote/financial-consensus-detail

鉴权

签名方式:每个请求用 App Key / Secret 签名。请求头如下:

名称类型必填说明
Authorizationstring · header必填OpenAPI 后台 上的账户 Access Token,作为原始 token 传入(不带 Bearer 前缀),并参与签名计算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填请求时间戳,单位秒(Unix 时间)。
X-Api-Signaturestring · header必填HMAC-SHA256 签名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。

获取机构共识预测,包括营收、EPS 和净利润预测。

>_ CLI
longbridge consensus TSLA.US
longbridge consensus AAPL.US

请求

查询参数

名称类型必填说明
symbolstring必填证券代码,例如 `TSLA.US`

响应

响应字段

名称类型必填说明
listobject[]可选共识预测期列表,
└ fiscal_yearinteger可选财年
└ fiscal_periodstring可选财年内的财季序号
└ period_textstring可选展示用周期标签(如 Q1 2027)
└ detailsobject[]可选财务指标详情列表
└ ∟ keystring可选指标键(如 `eps`、`revenue`)
└ ∟ namestring可选标的名称。
└ ∟ descriptionstring可选完整描述
└ ∟ estimatestring可选一致预期值
└ ∟ is_releasedboolean可选实际值是否已公布
└ ∟ actualstring可选实际披露值
└ ∟ comp_valuestring可选对比百分比值
└ ∟ comp_descstring可选对比描述
└ ∟ compstring可选对比结果(如 `beat`、`miss`)
current_indexinteger可选当前周期在 opt_periods 中的索引
currencystring可选报告货币
opt_periodsarray可选可选周期选项
current_periodstring可选当前周期代码(如 `qf`)

响应 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "currency": "USD",
    "current_index": 3,
    "current_period": "qf",
    "opt_periods": [
      "qf",
      "af",
      "saf"
    ],
    "list": [
      {
        "fiscal_year": 2026,
        "fiscal_period": "Q2 FY2026",
        "period_text": "Q2 FY2026",
        "details": [
          {
            "key": "revenue",
            "name": "Revenue",
            "estimate": "95000000000",
            "actual": "",
            "comp": "",
            "comp_value": null,
            "comp_desc": "",
            "description": "",
            "is_released": false
          }
        ]
      }
    ]
  }
}

错误码

参见错误码文档。