This project demonstrates a Binance-backed TradingView datafeed with 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: June 2026 with TradingView Advanced Charts 31.2.0, Trading
Platform 31.2.0, Binance public Spot REST/WebSocket APIs, CoinDesk RSS, and the
npm dependencies from package-lock.json.
For a fresh clone, install npm dependencies first, then download the TradingView runtime you want to use:
npm install
npm run tv:install:tp -- 31.2.0 # tested version
npm run startFor the free Advanced Charts page only, use this instead:
npm install
npm run tv:install:ac -- 31.2.0
npm run startOpen:
http://127.0.0.1:3000
http://127.0.0.1:3000/trading
If you have GitHub SSH access to TradingView's repositories, the install helper can download and place the package for you:
npm run tv:install:ac -- 31.2.0 # tested version
npm run tv:install:tp -- 31.2.0 # tested versionUse 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.
/: 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.
With npm:
npm run tv:install:ac -- 31.2.0
npm run tv:install:tp -- 31.2.0If you manually placed charting_library-master or trading_platform-master in
the project root, run:
npm run tv:sync
npm run startHard refresh the browser after package changes so old TradingView chunks are not reused.
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.