Skip to content

tradingview/charting-library-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Charts: Connecting data via the Datafeed API

Overview

This repository contains sample code for the Datafeed API tutorial, which demonstrates how to implement real-time data streaming in Advanced Charts. As an example, the tutorial describes a connection via the free CryptoCompare API that provides data from different crypto exchanges.

Note

Advanced Charts is a standalone client-side library that is used to display financial charts, prices, and technical analysis tools. Learn more about Advanced Charts on the TradingView website.

Prerequisites

How to run

Take the following steps to run this project:

  1. Clone the repository. Note that for the real project, it is better to use this repository as a submodule in yours.

    git clone https://github.com/tradingview/charting-library-tutorial.git
  2. Go to the repository folder and initialize the Git submodule with the library:

    git submodule update --init --recursive

    Alternatively, you can download the library repository from a ZIP file or clone it using Git.

  3. Run the following command to serve static files:

    npx serve

Release notes

September, 2025

The latest version introduces several key improvements:

  • Intraday resolutions: Added support for minute and hour resolutions.
  • SymbolInfo update: Removed full_name from the SymbolInfo object. Now, ticker is used instead.
  • Improved search: searchSymbols now properly filters results by user input, selected exchange, and symbol type.
  • Improved getBars: getBars now selects the correct API endpoint based on the requested resolution (minute, hour, or day), ensuring the most appropriate data is used.
  • Enhanced streaming: Reworked streaming logic to support multiple subscriptions to data updates.

About

This tutorial explains step by step how to connect your data to the Charting Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 11