0.0.15 • Published 5 years ago
mstock v0.0.15
wstock
a cmd tool for watching stock, root url: https://github.com/hellopao/wstock
update my stock list and add list sort function
lib/terminate.js
listStatus.sort(function (a, b) {
if (a.percentage > b.percentage) {
return -1;
} else if (a.percentage == b.percentage) {
return 0;
} else {
return 1;
}
});
install
npm install wstock -g
usage
wstock list
display all the stocks in stock.json and check status at intervals
- `wstock list -n` do not mark the stock status red or green by its increase - `wstock list -i <interval>` set the stock code check interval
wstock show <code>
show stock status and and check it at intervals
- `wstock show <code> -n` do not mark the stock status red or green by its increase - `wstock show <code> -i <interval>` set the stock code check interval
wstock query <code|name>
query stock info by code or name
wstock add <code>
add stock to stock.json then u can use
wstock list
to display it's statuswstock remove <code>
remove stock from stock.json
shortcut
0.0.15
5 years ago