Summary
In this chapter, we have outlined different ways to obtain financial and economic data in Python. In practice, you usually use multiple data sources at the same time. We explored the yahoofinancials
Python library and saw single- and multiple-tickers retrievals. We then explored the pandas_datareader
Python library to access Yahoo Finance, EconDB, and Fed’s Fred data and cache queries. We then explored the Quandl, IEX Cloud and MarketStack data sources.
In the next chapter, we introduce the backtesting library, Zipline, as well as the trading portfolio performance and risk analysis library, PyFolio.