Skip to main content

接口

GET
string
https://api.llmquant.com/events/earnings

参数

必填

ticker
string
required
股票代码(如 AAPL)。

选填

limit
integer
default:10
返回记录的最大数量。
date_gte
date
日期大于等于该日期(YYYY-MM-DD)。
date_lte
date
日期小于等于该日期(YYYY-MM-DD)。

返回值

earnings
array
EarningsEvent 对象数组,按日期倒序排列。

代码示例

import requests

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

url = "https://api.llmquant.com/events/earnings?ticker=AAPL&limit=8"
response = requests.get(url, headers=headers)
earnings = response.json().get("earnings")

for e in earnings:
    print(f"{e['fiscal_period']}: EPS 实际 {e['eps_actual']} vs 预期 {e['eps_estimate']}")