mq - get stock market quotes
mq is a command line tool for getting market quotes
$ mq -s GOOG,TSLA,BTC,AAPL Symbol Price ($) Change today (%) ------ --------- ---------------- GOOG 724.12 -0.16% AAPL 100.41 +0.79% TSLA 225.12 +2.52% BTCUSD=X 452.05 +0.90%
mq requires the Go Tools (v1.6+ tested, but others are probably fine). Instructions are here for installation.
make builds the binary and
make install places it on your path.
$ git clone firstname.lastname@example.org:zallarak/mq.git $ cd mq $ make && make install
mq -s <COMMA SEPERATED SYMBOLS> -f <FILE OF NEWLINE SEPERATED SYMBOLS>
Contributions are welcome.
Future plans for development:
- Better error handling
- Add other market data providers (currently, Yahoo Finance is queried)
There is no documentation for this package.