TradingView API is a JavaScript library that retrieves real-time market prices and technical indicator values from TradingView.
The library solves the problem of accessing TradingView data programmatically without relying on official APIs. It works by scraping TradingView's platform to extract real-time stock prices, cryptocurrency data, and indicator calculations. The tool supports premium features, technical analysis retrieval, and backtesting of trading strategies with multiple indicator configurations simultaneously. It offers both real-time data access and replay modes, including a free replay option for users without premium accounts.
Developers building trading bots, backtesting frameworks, or alert systems should consider this library if they need direct access to TradingView data and indicators. The tool suits projects requiring technical analysis values, strategy backtesting across many settings, or integration with Discord alerts. It handles invite-only indicators and allows retrieval of drawings made on charts, which distinguishes it from basic market data APIs. The library works with both stocks and cryptocurrencies across multiple timeframes.
The project maintains active community engagement through a dedicated Telegram group for support and collaboration. Development is responsive to feature requests, with the maintainer explicitly inviting users to propose additions. The codebase includes a comprehensive examples folder to help users understand implementation patterns, and the maintainer asks that users review existing examples and resolved issues before opening new ones to keep the issue tracker focused on genuine bugs and library-specific problems.