tradingeconomics
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');
-
Authentication
- Login if you have a client key or leave it blank and a sample of data will be provided.
- Note: Get your key here: http://developer.tradingeconomics.com
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