Coder Social home page Coder Social logo

stock-ticker's Introduction

Stock-Ticker

Real-time stock indices and tickers in your terminal

Open Issues License

Report Bug · Request Feature

Table of Contents

About The Project

Product Screenshot

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.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Python 3
# Install via brew on macOS
brew install python

For Linux and Windows refer to this.

Installation

1: Fork the repository (using the Fork button at the top)

2: Clone the repository

# Replace {YOUR_USERNAME} with your actual username
git clone https://github.com/{YOUR_USERNAME}/stock-ticker.git

3: Change directory into stock-ticker

cd stock-ticker

4: Install python requirements

pip3 install -r requirements.txt

Usage

  • 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.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

stock-ticker's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.