基本面

財務報告

GEThttps://openapi.longbridge.com/v1/quote/financial-reports

鑑權

簽名方式:每個請求用 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=。

獲取任意上市公司的利潤表、資產負債表和現金流量表。

>_ CLI
longbridge financial-report TSLA.US --kind IS
longbridge financial-report AAPL.US

請求

查詢參數

名稱類型必填說明
symbolstring必填證券代碼,例如 `AAPL.US`
kindstring必填報表類型:`IncomeStatement`(利潤表)、`BalanceSheet`(資產負債表)、`CashFlow`(現金流量表)、`All`(全部)
periodstring必填報告期:`Annual`(年報)、`SemiAnnual`(中報)、`Q1`/`Q2`/`Q3`/`ThreeQ`(季報)、`QuarterlyFull`(累計季報)

響應

響應欄位

名稱類型必填說明
listobject必填按報表類型分組的數據(key 為報表類型代碼,如 `IS`、`BS`、`CF`)
titlestring可選指標標題
short_titlestring可選短標題
currencystring可選貨幣
has_yoyboolean可選是否有同比數據
entrystring可選條目標識符
periodsstring[]可選可用報告期列表
accountsobject[]可選財務科目列表,
fieldstring必填字段標識符
percentboolean可選是否為百分比值
tipstring可選提示說明
valuesobject[]可選按報告期的歷史數值,
periodstring必填報告期標簽(如 `FY 2024`)
yearinteger可選財政年度
fp_endstring可選報告期結束時間戳
valuestring可選報告值
ratiostring可選比率值
yoystring可選同比增長率

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {
    "list": {
      "IS": {
        "indicators": [
          {
            "title": "Income Statement",
            "short_title": "IS",
            "currency": "USD",
            "has_yoy": true,
            "entry": "IS",
            "periods": [
              "FY2025",
              "FY2024"
            ],
            "accounts": [
              {
                "field": "EPS",
                "name": "Earnings Per Share(USD)",
                "percent": false,
                "tip": "",
                "values": [
                  {
                    "period": "FY 2025",
                    "year": 2025,
                    "fp_end": "1758945600",
                    "value": "7.46",
                    "ratio": "",
                    "yoy": "0.227"
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

錯誤碼

參見錯誤碼文檔。