Unofficial TradingView technical analysis API wrapper.
Archived. The repository is read-only: no more fixes or releases will come.
pip install tradingview-tapython-tradingview-ta

An unofficial python API wrapper to retrieve technical analysis from TradingView.

Note
- Always update tradingview-ta for new features and bug fixes:
pip install -U tradingview_ta - Technical analysis for indices (index) is not supported by both TradingView and tradingview-ta, see issue #67 and #84.
Features
- Faster response (compared to v2, which uses Selenium)
- Retrieve analysis for multiple symbols
- Indicators
Demo
You can try tradingview-ta online without installing Python: https://tradingview.brianthe.dev/.
Requirements
- Python 3.6 or newer.
- Requests, included in installation.
Installation
PyPI (stable, recommended):
pip install tradingview_ta
GitHub (latest):
pip install git+https://github.com/brian-the-dev/python-tradingview-ta.git
Example
from tradingview_ta import TA_Handler, Interval, Exchange
tesla = TA_Handler(
symbol="TSLA",
screener="america",
exchange="NASDAQ",
interval=Interval.INTERVAL_1_DAY,
# proxies={'http': 'http://example.com:8080'} # Uncomment to enable proxy (replace the URL).
)
print(tesla.get_analysis().summary)
# Example output: {"RECOMMENDATION": "BUY", "BUY": 8, "NEUTRAL": 6, "SELL": 3}