Mathieu2301 /TradingView-API

📈 Get real-time stocks from TradingView

★ 5,897⑂ 1,025👁 71⑃ 101● 175▤ 19
TypeScriptCreated 2021-03-05
Download: v4.1.1v4.1.1 ↓4.1.12026-11-03
+9
Daily
5,897
stars
1,025
forks
71
watchers
101
prs
175
issues
19
releases

README

TradingView API 








Get realtime market prices, indicator values and backtests from TradingView! 📈

🌐 English · Français · Español · Português

 🟢 Need help with your project?

🚀 Click here to get help with your project



 ✨ Features

- ✅ Realtime candles and quotes
- ✅ Indicator values: built-in and Pine indicators, invite-only included (with access)
- ✅ Strategy reports
- ✅ Honest backtests: no look-ahead, fees, random-entry baseline
- ✅ Replay mode + fake replay mode (free plan)
- ✅ Values for a specific date range
- ✅ Screener and hotlists
- ✅ Your watchlists and the drawings on your charts
- ✅ TradingView's technical analysis
- 💡 Want a feature? Ask here

 📦 Installation

bash
npm i @mathieuc/tradingview


📚 Getting started · Data API · Backtest · Low-level API · Examples

 🐛 Problems

If you have errors or unwanted behavior, please open an issue.

___

Independent community project. TradingView is a trademark of its respective owner; this project is not affiliated with or endorsed by TradingView.

Top issues

Discussions

Latest release

v4.1.1 v4.1.1 2026-11-03
4.1.1

Release channel: latest. Patch release: no API change for 4.1.0 users.

 Pine studies: "Can't parse pine"

Since 27 Oct 2026, every Pine study failed on the chart with study_error "Can't parse pine": built-in (STD;), public (PUB;) and private (USER;) scripts alike, on 3.5.x and 4.x (354).

TradingView moved the compiled script out of pine-facade/translate's result.ilTemplate: first to the hidden text input, then to result.metaInfo.defaults.inputs.text. getIndicator() now reads all three locations, so a rollback on TradingView's side keeps working, and throws a clear PARSE_ERROR when non

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON