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

# News & Calendars

> Access financial news, economic calendars, and earnings data with the JavaScript SDK

## Overview

Get financial news, economic events, earnings calendars, and historical economic indicators.

## News API

### getNews(params)

```javascript theme={null}
// All news
const news = await client.news.getNews({ limit: 10 });

// Symbol-specific
const aaplNews = await client.news.getNews({ symbol: 'AAPL', limit: 5 });

// Category-specific
const techNews = await client.news.getNews({ category: 'technology', limit: 10 });

news.forEach(article => {
  console.log(article.headline);
  console.log(`  Source: ${article.source}`);
});
```

## Calendars API

### getEconomicsCalendar(date)

```javascript theme={null}
const events = await client.calendars.getEconomicsCalendar('2025-01-15');
```

### getHistoricalData(symbol)

```javascript theme={null}
const data = await client.calendars.getHistoricalData('GDP');
```

### getEarningsCalendar(fromDate, toDate)

```javascript theme={null}
const earnings = await client.calendars.getEarningsCalendar('2025-01-15', '2025-01-20');
```
