2.3.6 • Published 6 years ago

doppelgunner-stock v2.3.6

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

doppelgunner-stock api

Api for getting historical-prices and analyzing its data.

Installation

npm install --save doppelgunner-stock

Samples

Loading of historical prices from WSJ.

  • Note: internet is required
  • Note: important to pass function callback to execute when downloading finished
import { HP, HPCommons, HPModel } from 'doppelgunner-stock';

HP.load(HP.downloadWSJ('X',false,'PH'), funcCallback);

OR

HP.load(HP.downloadWSJ('X',false,'PH'), () => {/*something to do here*/});

Function callback

  • Note: better to make promise for chaining
  • Note: This sample extracts and displays all dates
function funcCallback(hpModel) {
    new Promise((resolve,reject) => {
        resolve(hpModel);
    }).then(xurpas => HPCommons.getColumn(xurpas, 'date'))
      .then(dateColumn => console.log(dateColumn));
}

Limitations

  • Downloads from WSJ as of now
  • Only historical-prices
2.3.6

6 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.2.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago