Skip to main content

接口

GET
string
https://api.llmquant.com/financials/income-statements

参数

必填

ticker
string
required
股票代码(如 AAPLNVDA)。
period
string
required
报告周期,可选值:annual(年度)、quarterly(季度)、ttm(过去十二个月)。

选填

limit
integer
default:4
返回记录的最大数量。
cik
string
SEC 中央索引键(CIK),可替代 ticker 使用。
report_period
date
按精确报告期过滤(YYYY-MM-DD)。
report_period_gte
date
报告期大于等于该日期(YYYY-MM-DD)。
report_period_lte
date
报告期小于等于该日期(YYYY-MM-DD)。
report_period_gt
date
报告期严格大于该日期(YYYY-MM-DD)。
report_period_lt
date
报告期严格小于该日期(YYYY-MM-DD)。

返回值

income_statements
array
IncomeStatement 对象数组。

代码示例

import requests

headers = {"X-API-KEY": "your_api_key_here"}

ticker = "AAPL"
period = "annual"
limit = 10

url = (
    f"https://api.llmquant.com/financials/income-statements"
    f"?ticker={ticker}"
    f"&period={period}"
    f"&limit={limit}"
)

response = requests.get(url, headers=headers)
income_statements = response.json().get("income_statements")