yfinance

0.0.6 • Public • Published

yfinance NPM version Build Status Dependency Status Coverage percentage

Yahoo Finance API for NodeJs.

Installation

$ npm install --save yfinance

Usage

var yfinance = require('yfinance');
 
yfinance.getQuotes('JNJ', function (err, data) {
    if(err) console.log(err);
    //...
});
 
yfinance.getHistorical('JNJ', '2016-08-01', '2016-08-05', function (err, data) {
    if(err) console.log(err);
    //...
});
 
yfinance.getDividendHistory('JNJ', '2015-01-01', '2015-12-31', function (err, data) {
    if(err) console.log(err);
    //... endDate not working!
});

License

MIT © Johan Carlsson

/yfinance/

    Package Sidebar

    Install

    npm i yfinance

    Weekly Downloads

    96

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • johancn87