Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

tradingeconomics

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tradingeconomics

Node package on how to access Trading Economics API data.

latest
npmnpm
Version
2.5.8
Version published
Maintainers
3
Created
Source

tradingeconomics

npm version Unit Tests

Description

The Trading Economics NPM package provides direct access to our data. It allows you to request millions of rows of economic historical data, to query our real-time economic calendar and to subscribe to updates.

QuickStart

npm install tradingeconomics

Usage

  • Import the package.

const te = require('tradingeconomics');
te.login();

or

te.login('key:secret');
  • Authentication using environment variable

apikey="key:secret" node app.js
  • Request data

    • Use the functions to get data from Markets, Indicators, Economic Calendar, Forecasts, World Bank, Comtrade, Federal Reserve, and even the latest news.
    • Know more about other methods on our docs
te.getCalendar().then((data) => console.log(data));

Examples

https://github.com/tradingeconomics/tradingeconomics-js/tree/main/Examples

Documentation

https://docs.tradingeconomics.com

Learn More

https://tradingeconomics.com/analytics/api.aspx

Keywords

node

FAQs

Package last updated on 17 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts