mstock
v0.0.15
Published
a cmd tool for watching stock info
Readme
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 -gusage
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 intervalwstock 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 intervalwstock 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 status
wstock remove <code>
remove stock from stock.json
shortcut

