财报快照(AI 摘要 + 预测对比)

获取 AI 生成的财报摘要、营收/EBIT/EPS 预测对比(超预期/低于预期),以及关键财务指标。

>_ CLI
longbridge financial-report snapshot AAPL.US
longbridge financial-report snapshot AAPL.US --report qf --year 2024 --period 4

Parameters

SDK 方法参数。

NameTypeRequiredDescription
symbolstring是证券代码,例如 AAPL.US
reportstring否报告类型:qf(季报)/ saf(半年报)/ af(年报)
fiscal_yearuint32否财政年度,例如 2024
fiscal_periodstring否财政季度,例如 1 / 2 / 3 / 4

Request Example

from longbridge.openapi import FundamentalContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = FundamentalContext(config)

resp = ctx.financial_report_snapshot("AAPL.US", report="qf", fiscal_year=2024, fiscal_period="4")
print(resp)
import asyncio
from longbridge.openapi import AsyncFundamentalContext, Config, OAuthBuilder

async def main() -> None:
    oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url))
    config = Config.from_oauth(oauth)
    ctx = AsyncFundamentalContext.create(config)

    resp = await ctx.financial_report_snapshot("AAPL.US", report="qf", fiscal_year=2024, fiscal_period="4")
    print(resp)

if __name__ == "__main__":
    asyncio.run(main())
const { Config, FundamentalContext, OAuth } = require('longbridge')

async function main() {
  const oauth = await OAuth.build('your-client-id', (_, url) => {
    console.log('Open this URL to authorize: ' + url)
  })
  const config = Config.fromOAuth(oauth)
  const ctx = FundamentalContext.new(config)
  const resp = await ctx.financialReportSnapshot('AAPL.US', { report: 'qf', fiscalYear: 2024, fiscalPeriod: '4' })
  console.log(resp)
}
main().catch(console.error)
import com.longbridge.*;
import com.longbridge.fundamental.*;

class Main {
    public static void main(String[] args) throws Exception {
        try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open to authorize: " + url)).get();
             Config config = Config.fromOAuth(oauth);
             FundamentalContext ctx = FundamentalContext.create(config)) {
            var resp = ctx.getFinancialReportSnapshot("AAPL.US", "qf", 2024, "4").get();
            System.out.println(resp);
        }
    }
}
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, fundamental::FundamentalContext, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?;
    let config = Arc::new(Config::from_oauth(oauth));
    let ctx = FundamentalContext::new(config);
    let resp = ctx.financial_report_snapshot("AAPL.US", Some("qf"), Some(2024), Some("4")).await?;
    println!("{:?}", resp);
    Ok(())
}
#include &lt;iostream&gt;
#include <longbridge.hpp>

using namespace longbridge;
using namespace longbridge::fundamental;

int main() {
    OAuthBuilder("your-client-id").build(
        [](const std::string& url) { std::cout << "Open: " << url << std::endl; },
        [](auto res) {
            if (!res) return;
            Config config = Config::from_oauth(*res);
            FundamentalContext ctx = FundamentalContext::create(config);
            ctx.financial_report_snapshot("AAPL.US", "qf", 2024, "4", [](auto resp) {
                if (resp) std::cout << "OK" << std::endl;
            });
        });
    std::cin.get();
}
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/longbridge/openapi-go/config"
	"github.com/longbridge/openapi-go/oauth"
	"github.com/longbridge/openapi-go/fundamental"
)

func main() {
	o := oauth.New("your-client-id").
		OnOpenURL(func(url string) { fmt.Println("Open this URL to authorize:", url) })
	if err := o.Build(context.Background()); err != nil {
		log.Fatal(err)
	}
	conf, err := config.New(config.WithOAuthClient(o))
	if err != nil {
		log.Fatal(err)
	}
	c, err := fundamental.NewFromCfg(conf)
	if err != nil {
		log.Fatal(err)
	}
	defer c.Close()
	resp, err := c.FinancialReportSnapshot(context.Background(), "AAPL.US", "qf", 2024, "4")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", resp)
}

Response

Response Example

{
  "code": 0,
  "message": "success",
  "data": {
    "name": "苹果",
    "ticker": "AAPL",
    "fp_start": "2025.12.28",
    "fp_end": "2026.03.28",
    "currency": "USD",
    "report_desc": "概要:苹果(AAPL)的营业收入是 1112 亿(+16.6%);每股收益是 2.01(+21.82%)。",
    "fo_revenue": {"value": "111184000000.0000", "yoy": "16.6", "cmp_desc": "", "est_value": ""},
    "fo_ebit": {"value": "35885000000.0000", "yoy": "21.28", "cmp_desc": "", "est_value": ""},
    "fo_eps": {"value": "2.0100", "yoy": "21.82", "cmp_desc": "", "est_value": ""},
    "fr_revenue": {"value": "111184000000.0000", "yoy": "16.6"},
    "fr_profit": {"value": "29578000000.0000", "yoy": "19.36"},
    "fr_roe_ttm": "141.4705",
    "fr_profit_margin": "26.6027",
    "fr_debt_assets_ratio": "71.3025"
  }
}

Response Status

StatusDescriptionSchema
200成功FinancialReportSnapshotResponse
400请求错误None

Schemas

FinancialReportSnapshotResponse

NameTypeRequiredDescription
namestring否公司名称
tickerstring否证券代码(不含市场后缀,例如 AAPL)
fp_startstring否财政期开始日期,格式 YYYY.MM.DD
fp_endstring否财政期结束日期,格式 YYYY.MM.DD
currencystring否货币代码
report_descstring否AI 生成的财报摘要
fo_revenueobject否营收预测对比,见 ForecastMetric
fo_ebitobject否EBIT 预测对比,见 ForecastMetric
fo_epsobject否EPS 预测对比,见 ForecastMetric
fr_revenueobject否营收财务数据,见 ReportedMetric
fr_profitobject否净利润财务数据,见 ReportedMetric
fr_operate_cashobject否经营现金流,见 ReportedMetric
fr_invest_cashobject否投资现金流,见 ReportedMetric
fr_finance_cashobject否融资现金流,见 ReportedMetric
fr_total_assetsobject否总资产,见 ReportedMetric
fr_total_liabilityobject否总负债,见 ReportedMetric
fr_roe_ttmstring否净资产收益率 TTM(百分比,例如 141.47)
fr_profit_marginstring否净利率(百分比)
fr_profit_margin_ttmstring否净利率 TTM(百分比)
fr_asset_turn_ttmstring否资产周转率 TTM(百分比)
fr_leverage_ttmstring否杠杆率 TTM(百分比)
fr_debt_assets_ratiostring否资产负债率(百分比)

ForecastMetric

NameTypeRequiredDescription
valuestring否实际值
yoystring否同比增速(百分比,例如 16.6)
cmp_descstring否超预期/低于预期描述(可能为空)
est_valuestring否一致预期值(可能为空)

ReportedMetric

NameTypeRequiredDescription
valuestring否数值
yoystring否同比增速(百分比)