Stock Watch
A simple tool for fetching realtime and historical k-chart data of global stock markets including China.
Installation
npm install stock-watch
If you would like to use in command line, install with -g
option then you will got global sw
command.
Using in Command line
# fetch data by stock symbol sw BABA
Using as a node module
; // get realtime dataFetcher; // get historical k-chart dataFetcher;
Testing
All test tasks can be run via npm run [task name]
.
# run test watch npm run test # run test in watch mode npm run test:watch # run test with coverage report npm run test:cov
Run as a server
Start a http server on port 5555
:
node server.js
License
MIT