Note from Towards Data Science’s editors:_ While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details._


In this article, you will learn to get the stock market data such as price, volume and fundamental data using Python packages. (In less than 3 lines of code)

First of all, before to start, you will need to have installed a Python 3 version and the following packages:

  • Pandas
  • Pandas_datareader
  • DateTime

If any of these packages are not already installed, you can use the pip command as shown below.

pip install pandas-datareader
pip install DateTime

Once you have ensured that the following packages are installed, we can start.

If you already have experience with Python, you can jump to step III. Step I and II will consist of importing data and converting to dateformat.

#python #algorithmic-trading #trading #stock-market-tips #yahoo-finance

How to get Market Data from the NYSE in less than 3 lines (Python).
2.40 GEEK