Access financial news, economic calendars, and earnings data with the JavaScript SDK
// 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}`); });
const events = await client.calendars.getEconomicsCalendar('2025-01-15');
const data = await client.calendars.getHistoricalData('GDP');
const earnings = await client.calendars.getEarningsCalendar('2025-01-15', '2025-01-20');
Was this page helpful?