pandas-datareader
Python library that pulls macroeconomic and factor-style data from public sources such as FRED, Fama/French, the World Bank, OECD and Eurostat straight into a pandas DataFrame.
Load interest rates, inflation and factor data into pandas with one line of Python, ready for charts and backtests.
Who it is for
Analysts, students and strategy builders who want free macro and factor series in pandas to enrich research or backtests.
Strengths
- Covers FRED, Fama/French, Bank of Canada, World Bank, OECD and Eurostat sources.
- Returns pandas DataFrames, so the data plugs directly into analysis, charts and backtesting code.
- Simple install with pip and a one-line call such as get_data_fred.
Good to know
- Depends on third-party websites and APIs, so a source can change or stop working without notice.
- GitHub does not detect a standard licence, so check the repository before using it commercially.
- The README says Python 3.12 and later may need setuptools installed for distutils.
- Last repository change was in July 2026, so updates are less frequent than on very active projects.
Custom bots are coming soon
We are preparing a service to build bots on tools like this one. Follow our Telegram channel to know when it opens.
Real-life uses
Add interest-rate and inflation data to your research
Pull a US interest-rate series from FRED with a one-line Python call, line it up with your price data and see how your strategy behaved in different rate periods. Illustrative only, never a promise of returns.
Compare it with others
Lightweight Charts vs mplfinance: interactive web charts or Python candlesticks?
Two free ways to draw candlestick charts of your bot's prices or backtest results: TradingView's JavaScript library for interactive web pages and mplfinance for quick Python charts. Compared from checked sources.
TA-Lib vs ta vs FinanceToolkit: free Python libraries for technical indicators
Three free Python libraries compared for RSI, MACD and Bollinger Bands: TA-Lib for 200+ indicators and candlestick patterns, ta for a simple pip install on Pandas, and FinanceToolkit for ratios, indicators and risk metrics. Licences, level and who each suits.
Finnhub vs Alpha Vantage vs Massive (Polygon.io): which market data API for your bot?
The Finnhub Python client, Alpha Vantage and Massive (formerly Polygon.io) compared side by side: coverage, free tier, licence, difficulty and who each one suits.
Guides that use it
Quick answers
How much does pandas-datareader cost?
Free to install with pip. Some underlying data sources may have their own terms or API keys, so check each source's official website. Prices change, so check the official website before you decide.
Is pandas-datareader open source?
Yes. License: Not detected by GitHub; check the repository's licence file.
Who is pandas-datareader for?
Analysts, students and strategy builders who want free macro and factor series in pandas to enrich research or backtests.
What is pandas-datareader written in?
pandas-datareader is written in Python.
What should I know before using pandas-datareader?
Depends on third-party websites and APIs, so a source can change or stop working without notice. GitHub does not detect a standard licence, so check the repository before using it commercially. The README says Python 3.12 and later may need setuptools installed for distutils. Last repository change was in July 2026, so updates are less frequent than on very active projects.
Want a bot like this when custom bots open? Get notified · All comparisons · Guides
Sources
Every fact on this page comes from these sources, checked on 2026-11-26. If something has changed, the source wins.
- https://raw.githubusercontent.com/pydata/pandas-datareader/main/README.md: purpose, listed data sources, pip install, example call, requirements
- https://api.github.com/repos/pydata/pandas-datareader: Python, about 3,300 stars, last push 2026-07-21, not archived, licence not detected by GitHub
Alternatives in Market data
Binance public data
Free downloadable files with Binance's historical spot and futures market data (klines, trades, aggregated trades), published daily and monthly.
FRED API
REST API from the St. Louis Fed to retrieve economic data series (FRED) and their historical vintages (ALFRED) as JSON or XML.
mplfinance
Python package of matplotlib utilities to plot candlestick, OHLC, Renko and Point and Figure charts with volume and moving averages from a pandas DataFrame.
ta (Technical Analysis Library in Python)
Python library built on Pandas and NumPy that adds 43 technical indicators (volume, volatility, trend and momentum) to a price table with a few lines of code.