GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AnalyzerREST/python-tradingview-ta: Unofficial TradingView technical analysis API wrapper.

This repository was archived by the owner on Jun 13, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

192 Commits
192 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
images
images
 
 
tradingview_ta
tradingview_ta
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
test.py
test.py
 
 

Repository files navigation

Python TradingView TA by Analyzer.REST


An unofficial API wrapper for TradingView that allows you to fetch technical analysis data, now under new management.

Brought to you by Analyzer.REST, which provides Technical Analysis-as-a-Service (TAaaS) through an intuitive and affordable API. Join the waitlist!

Important

  • Keep tradingview-ta up to date 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 (older version of tradingview-ta requires Selenium)
  • Support for multiple symbols
  • Indicators (Only TradingView built-in, does not support Pine Script/custom indicators)

Demo

You can try tradingview-ta online without installing Python: https://tvta-demo.analyzer.rest/.

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/analyzerrest/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}

Tip: Use https://tvdb.analyzer.rest/ if you don't know what symbol, screener, and exchange to use.

Documentation

Read The Docs

Issue

If you found a bug or have a question, please open an issue. Email will not be replied.

Warning

Trading is a risky activity, especially when done using an automated program. Never trade automatically without your supervision using results provided by tradingview-ta. Any monetary losses are not my fault.

Contributing

Pull requests (docs, bug fix, features) are welcomed! Any pull request (documentation, bug fix, features, etc) are welcomed. Please follow the guidelines and the code of conduct.

License

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.

About

Unofficial TradingView technical analysis API wrapper.

python-tradingview-ta.readthedocs.io/

Topics

technical-analysistradingviewtradingview-ta

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

1.3k stars

Watchers

1 watching

Forks

268 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.