The Stock Tracker CLI aims toward a fully functional interface that lets you check stock value and other useful pieces of information about the stocks. The stock data is sourced by the iexcloud API. You can sign up for free to get your keys.
To use the Stock Tracker you have to provide valid API Keys for a Stock Data Provider in your .env. Use the .env.example for reference. The provider could be easily replaced by another one. To do so check out the HttpClientService.
To build an executable, standalone Stock Tracker run: php stock-tracker app:build stock-tracker
Supported Commands:
cap {symbol}
Display market cap of the stock with the given symbolcompany {symbol}
Display information about the company of the stock with the given symbolhistoric {symbol}
Display historical price data of the stock with the given symbolintraday {symbol}
Display the intraday data of the stock with the given symbolprice {symbol}
Display the current value of the stock with the given symbolstatus
Display status of Stock API
Example:
Will output the current market cap of Apple
stock-tracker cap AAPL
The Stock Tracker CLI is built with Laravel Zero made by nunomaduro.