A command line tool for querying stock price.
Sprice stands for stock price or (search price).
npm install -g sprice
Maybe you need 'sudo' to install globally.
First time use npm? See How to install npm.
Usage: sprice [options] [command]
Get the current price of some company
sprice price|p <symbol>
Get the latest news about the company. You can move up and down to see all listed news. Selected one will be opened in the default browser.
You can also specify the number of news you want to see by -t. The default number is 10.
sprice news|n <symbol> -n [number]
Get the company information
sprice company|co <symbol>
Get today's open/close/high/low price for the company.
sprice oc <symbol>
Get the chart information of the company. The difference is colored as green or red.
sprice charts|ch <symbol>
Get the earnings for 4 most recent reported quarters.
sprice earnings|e <symbol>
Data provided for free by IEX. View IEX’s Terms of Use.
(The MIT License)
Copyright (c) 2018 Frank Wang<yocson@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.