TA-Lib (Python wrapper)
Python wrapper for the TA-Lib technical analysis library, with 200+ indicators and 61 candlestick pattern functions that work on NumPy, pandas and Polars data.
A battle-tested indicator toolbox: RSI, MACD, Bollinger Bands and candlestick patterns in a few lines of Python.
Who it is for
Python users who build indicators, screeners or strategy backtests and want a standard, fast indicator library.
Strengths
- Covers overlap studies, momentum, volume, cycle, price transform, volatility and statistics functions.
- 61 candlestick pattern recognition functions.
- The Function API accepts NumPy, pandas and Polars series; the Abstract API accepts DataFrames.
- Prebuilt wheels for Linux, macOS and Windows on Python 3.9 to 3.14, so no separate C install is usually needed.
Good to know
- It only calculates indicators: it does not fetch market data, run backtests or place orders.
- Building from source needs a C compiler and CMake (plus Microsoft C++ Build Tools on Windows).
- Indicator signals are not predictions; always test any rule with fees and slippage in a backtest first.
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
Indicator and candlestick screener
A daily script computes RSI, Bollinger Bands and candlestick patterns on your watchlist and lists the symbols that meet your rules. Illustrative only, never a promise of returns.
Compare it with others
Quick answers
How much does TA-Lib (Python wrapper) cost?
Free and open source (BSD 2-Clause). Prices change, so check the official website before you decide.
Is TA-Lib (Python wrapper) open source?
Yes. License: BSD-2-Clause.
Who is TA-Lib (Python wrapper) for?
Python users who build indicators, screeners or strategy backtests and want a standard, fast indicator library.
What is TA-Lib (Python wrapper) written in?
TA-Lib (Python wrapper) is written in Python, Cython.
What should I know before using TA-Lib (Python wrapper)?
It only calculates indicators: it does not fetch market data, run backtests or place orders. Building from source needs a C compiler and CMake (plus Microsoft C++ Build Tools on Windows). Indicator signals are not predictions; always test any rule with fees and slippage in a backtest first.
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-12. If something has changed, the source wins.
- https://raw.githubusercontent.com/TA-Lib/ta-lib-python/master/README.md: 200+ indicators, 61 CDL pattern functions, pandas and Polars support, prebuilt wheels and platforms, build requirements, BSD 2-Clause
- https://api.github.com/repos/TA-Lib/ta-lib-python: BSD-2-Clause, about 12,400 stars, last push 2026-11-11, not archived
Alternatives in Market data
exchange_calendars
Python library with trading calendars for more than 50 exchanges, so your code knows which days are sessions, when markets open, close and take breaks.
Lightweight Charts
Small, fast open-source JavaScript library from TradingView for showing interactive financial charts, such as candlesticks and lines, on your own web page.
OpenBB
Open-source data platform that connects many data sources and exposes them to Python, a command line, a local REST API and AI agents.
SEC EDGAR APIs
Free JSON APIs from the U.S. Securities and Exchange Commission with company filing histories and XBRL financial facts from 10-K, 10-Q, 8-K and other filings, plus nightly bulk downloads.