tradingview/charting-library-tutorial
소개
이 튜토리얼에서는 데이터를 Charting Library에 연결하는 방법을 단계별로 설명합니다.
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTradingView charting libraries datafeed example
This project implements a Binance-backed datafeed for TradingView Advanced Charts and Trading Platform. The datafeed tutorial in the documentation builds this code step by step, and its Extend to Trading Platform part adds trading features.
The project has two optional run modes:
- Free Advanced Charts from
tradingview/charting_library. - Paid Trading Platform from
tradingview/trading_platform.
You only need the TradingView package for the page you want to test. If both packages are present, both routes work in the same checkout.
Last tested: November 2026 with TradingView Advanced Charts 33.1.0, Trading
Platform 33.1.0, Binance public Spot REST/WebSocket APIs, CoinDesk RSS, and the
npm dependencies from package-lock.json.
Start the project
For a fresh clone, install npm dependencies first, then download the TradingView runtime you want to use:
npm install
npm run tv:install:tp -- 33.1.0 # tested version
npm run start
For the free Advanced Charts page only, use this instead:
npm install
npm run tv:install:ac -- 33.1.0
npm run start
Open:
http://127.0.0.1:3000
http://127.0.0.1:3000/trading
Download a TradingView package
If you have GitHub SSH access to TradingView's repositories, the install helper can download and place the package for you. Access to the repositories is restricted; see Get access to request it.
npm run tv:install:ac -- 33.1.0 # tested version
npm run tv:install:tp -- 33.1.0 # tested version
Use only the command for the package you need. If you omit the version, the
script downloads master.
tv:install:acinstalls only Advanced Charts.tv:install:tpinstalls both Advanced Charts and Trading Platform, so the homepage still works.
Place one or both package folders in the project root:
charting-library-tutorial/
charting_library-master/
charting_library/
charting_library.js
trading_platform-master/
charting_library/
charting_library.js
- Use
charting_library-masterfor the free Advanced Charts page. - Use
trading_platform-masterfor the Trading Platform page.
For Trading Platform broker features, the tv:install:tp script also installs
TradingView's BrokerDemo bundle. It first checks the installed package, then
falls back to fetching the bundle from the Trading Platform repository using the
same version or git ref. If you place packages manually, copy the bundle into
this path:
third_party/tradingview/broker-sample/dist/bundle.js
The bundle can be found in TradingView's Trading Platform repository: broker-sample/dist/bundle.js.
Routes
/: minimal Advanced Charts example with chart datafeed, theme toggle, and documentation button./trading: Trading Platform example with broker sample, DOM, account manager, alerts, save/load, watchlist, quotes, CoinDesk news, toolbar controls, and multi-chart support.
Updating TradingView packages
With npm:
npm run tv:install:ac -- 33.1.0
npm run tv:install:tp -- 33.1.0
If you manually placed charting_library-master or trading_platform-master in
the project root, run:
npm run tv:sync
npm run start
Hard refresh the browser after package changes so old TradingView chunks are not reused.
Useful notes
npm run tv:synccopies package assets intovendor/tradingview/.npm run tv:install:acinstalls only the Advanced Charts runtime intovendor/tradingview/advanced_charts.npm run tv:install:tpinstalls Advanced Charts and Trading Platform intovendor/tradingview/.- If only
charting_library-masterexists, only/is expected to work. - If only
trading_platform-masterexists, only/tradingis expected to work. npm run startserves clean routes and the CoinDesk RSS proxy used by/trading.npm run start:staticis only a static fallback; Trading Platform CoinDesk news will not load there.- More implementation detail is in INTEGRATION_DETAILS.md.
관련 프로젝트 살펴보기
불러오는 중…