Skip to main content

Get started

Follow these steps to integrate Advanced Charts or Trading Platform into your project.

tip

If you prefer a visual guide, watch our YouTube tutorial on how to download the repository and set up your first local project.

1. Get access

The libraries are hosted in a private GitHub repository. To get access:

  1. Go to the product landing page you need and submit the access request form.
  2. Once approved, you will receive a GitHub invitation to the repository.
caution

Advanced Charts and Trading Platform should only be downloaded from the official TradingView repositories provided within this documentation. Obtaining the library from third-party services is strictly prohibited and may lead to legal consequences.

The library is not redistributable. It is prohibited to use any part of the library in public repositories.

2. Install the library

Choose the installation method that best fits your development environment.

  1. Clone or download the ZIP from the Advanced Charts or Trading Platform repository.
  2. Create a project folder (e.g., /example). Copy the following folders from the repository into your project:
    • charting_library/ — core library files.
    • datafeeds/ — sample datafeed implementation.

3. Initialize the chart

To run the library, you need an HTML container and a script to initialize the Widget Constructor.

  1. Create a container for the chart and include the necessary script references.

    /example/index.html
    <!DOCTYPE HTML>
    <html lang="en">
    <head>
    <meta charset = "UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Core library script -->
    <script src="charting_library/charting_library.standalone.js"></script>
    <!-- Sample UDF datafeed implementation -->
    <script src="datafeeds/udf/dist/bundle.js"></script>
    </head>

    <body>
    <!-- Chart container -->
    <div id="chartContainer"></div>
    </body>
    </html>
  2. Initialize the Widget Constructor inside <body> to create a chart. This example uses sample UDF adapter so you can see a working chart immediately.

    <script>
    new TradingView.widget({
    container: 'chartContainer',
    locale: 'en',
    library_path: 'charting_library/',
    datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo-feed-data.tradingview.com"),
    symbol: 'AAPL',
    interval: '1D',
    fullscreen: true,
    debug: true
    });
    </script>

4. Run the project

  1. Run one of the following commands in your project folder (e.g., /example) to start a local server:

    # Python 2.x
    python -m SimpleHTTPServer 9090

    # Python 3.x
    python -m http.server 9090
  2. Open http://localhost:9090 in your web browser. You should see the chart rendering AAPL data.

Next steps