history()
history(ticker: string): Promise<ApiResponse>
Get earnings history for a company.
Example
const history = await client.earnings.history('AAPL');
trend()
trend(ticker: string): Promise<ApiResponse>
Get earnings trend analysis.
Example
const trend = await client.earnings.trend('AAPL');
index()
index(ticker: string): Promise<ApiResponse>
Get index trend data.
Example
const indexTrend = await client.earnings.index('AAPL');
report()
report(ticker: string, params: { year: string, quarter: string }): Promise<ApiResponse>
Get earnings report for a specific quarter.
Year of the earnings report
Quarter of the earnings report
Example
const report = await client.earnings.report('AAPL', {
year: '2024',
quarter: 'Q1'
});