Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Last active January 13, 2025 20:00
Show Gist options
  • Save yordanoweb/1fec595d1a78e0e50c351f6ac172cdb9 to your computer and use it in GitHub Desktop.
Save yordanoweb/1fec595d1a78e0e50c351f6ac172cdb9 to your computer and use it in GitHub Desktop.
TradingView TA with Python

TradingView TA with Python module

Install

pip install tradingview_ta

The code

from tradingview_ta import TA_Handler, Interval, Exchange

bitcoin = TA_Handler(symbol="BTCUSDT",screener="crypto",exchange="BINANCE",interval=Interval.INTERVAL_1_DAY)

print(bitcoin.get_analysis().summary)

The result of "print" statement

{'RECOMMENDATION': 'SELL', 'BUY': 4, 'SELL': 12, 'NEUTRAL': 10}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment