Real-time stock indices and tickers in your terminal
Report Bug
·
Request Feature
stock-ticker.py
is a python script using the Yahoo Finance API v7 as a data source. Major stock indices and currencies are printed out by standard and is then followed by the stock symbols provided by the user. The script will run every 5 minutes.
To get a local copy up and running follow these simple steps.
- Python 3
# Install via brew on macOS
brew install python
For Linux and Windows refer to this.
- Clone the stock-ticker
git clone https://github.com/longpdo/stock-ticker.git
- Change directory into stock-ticker
cd stock-ticker
- Install python requirements
pip3 install -r requirements.txt
- Single stock symbol
python3 stock-ticker.py AAPL
- Multiple stock symbols
python3 stock-ticker.py FB AAPL AMZN NFLX GOOG
- Text file with multiple stock symbols
python3 stock-ticker.py watchlist.txt
- watchlist.txt: add your stock symbols line per line
FB
AAPL
AMZN
NFLX
GOOG
- To stop the script, use
ctrl-c
inside your terminal.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.