0.1.1 • Published 3 years ago

newstank v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

NewsTank

How to install

Install the package from NPM

npm install newstank --save
yarn add newstank --save

How to use

Get all news providers

const newstank = require("newstank");
newstank.getProviders()

// ['NSE']

Get News from a single provider

newstank.getNewsItems('NSE')

// [
//   {
//     ticker: 'ACRYSIL',
//     newsType: 'Investor Presentation',
//     datetime: 2021-05-20T20:46:18.492Z,
//     link: 'https://archives.nseindia.com/corporate/ACRYSIL_21052021003458_AcrysilLtdQ4andFY21InvestorPresentationFinal.pdf',
//     companyName: 'Acrysil Limited',
//     industry: null,
//     description: 'Acrysil Limited has informed the Exchange about Investor Presentation'
//   },
//   ...
//   {
//     ticker: 'INDUSINDBK',
//     newsType: 'Analysts/Institutional Investor Meet/Con. Call Updates',
//     datetime: 2021-05-20T20:46:18.492Z,
//     link: 'https://archives.nseindia.com/corporate/INDUSINDBK_20052021214533_Regulation46.pdf',
//     companyName: 'IndusInd Bank Limited',
//     industry: 'Banks',
//     description: 'Indusind Bank Limited has informed the Exchange about Analysts/Institutional Investor Meet/Con. Call Updates'
//   }
// ]
0.1.1

3 years ago

0.1.0

3 years ago