A python package to get TradingView's stock/crypto/forex/cfd technical analysis.
Author: deathlyface
- Fast analysis
- Reputable data sources
- Detailed indicators
- Python 3.5 or newer.
- Requests, Included in package.
Using pip:
pip install tradingview_ta
from tradingview_ta import TA_Handler
handler = TA_Handler()
handler.symbol = "TSLA"
handler.interval = "15m" # 15 Minutes
handler.exchange = "NASDAQ"
handler.screener = "america"
analysis = handler.get_analysis()
print(analysis.summary)
#Example output: {"RECOMMENDATION": "BUY", "BUY": 8, "NEUTRAL": 6, "SELL": 3}
Found a bug? Want to ask something? Just create an issue and I'll help you.
Trading (especially using an automated program) is a dangerous activity. Do not use TradingView's analysis to trade automatically without your supervision. I am not responsible for any financial loss.
You may fork this repository or submit a pull request. Any pull request (documentation, bug fix, features, etc) are welcomed.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.