> ## Documentation Index
> Fetch the complete documentation index at: https://docs.axionquant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# EarningsAPI

> Earnings history, trends, and reports

## history()

```typescript theme={null}
history(ticker: string): Promise<ApiResponse>
```

Get earnings history for a company.

<ParamField path="ticker" type="string" required>
  Stock ticker symbol
</ParamField>

### Example

```typescript theme={null}
const history = await client.earnings.history('AAPL');
```

## trend()

```typescript theme={null}
trend(ticker: string): Promise<ApiResponse>
```

Get earnings trend analysis.

<ParamField path="ticker" type="string" required>
  Stock ticker symbol
</ParamField>

### Example

```typescript theme={null}
const trend = await client.earnings.trend('AAPL');
```

## index()

```typescript theme={null}
index(ticker: string): Promise<ApiResponse>
```

Get index trend data.

<ParamField path="ticker" type="string" required>
  Stock ticker symbol
</ParamField>

### Example

```typescript theme={null}
const indexTrend = await client.earnings.index('AAPL');
```

## report()

```typescript theme={null}
report(ticker: string, params: { year: string, quarter: string }): Promise<ApiResponse>
```

Get earnings report for a specific quarter.

<ParamField path="ticker" type="string" required>
  Stock ticker symbol
</ParamField>

<ParamField path="params.year" type="string" required>
  Year of the earnings report
</ParamField>

<ParamField path="params.quarter" type="string" required>
  Quarter of the earnings report
</ParamField>

### Example

```typescript theme={null}
const report = await client.earnings.report('AAPL', {
  year: '2024',
  quarter: 'Q1'
});
```
