Demo | Documentation | Tutorial | Discord community
This repository contains the TradingView Advanced Charts package. If you use Git in your project, please feel free to use this repository as a submodule in yours.
The master branch contains the most recent features and fixes.
Before using the library, please read the documentation and the Best Practices article.
Rather than using TradingView datafeed or sample datafeeds, the script uses datafeeds from Polygon in order to incorporate our own CSV file, which contains user's transactions of different type, like stock, option. Please read the Stocks API documentation, which provides REST endpoints that let you query the latest market data from all US stock exchanges.
NOTE: since we're using free-tier serivce, we have 5 API calls per minute.
- charting_library: Local Tradingview Charting library
- index.html: Sets up a basic web page for display TradingView Chart, loading the charting library and the main script. script.js: Custom datafeed from Polygon and a local CSV file to load symbolic data and annotation.
- Clone or download this repository.
- Start a locla web server:
python3 -m http.server 8000
- access the server by opening a web browser and navigte to http://localhost:8000
[]