# TradingView API [![GitHub stars](https://img.shields.io/github/stars/Mathieu2301/TradingView-API.svg?style=social&label=Star)](https://github.com/Mathieu2301/TradingView-API/stargazers)

[![Tests](https://github.com/Mathieu2301/TradingView-API/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/Mathieu2301/TradingView-API/actions/workflows/tests.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/mathieu2301/tradingview-api/badge/main)](https://www.codefactor.io/repository/github/mathieu2301/tradingview-api/overview/main)
[![npm downloads](https://badgen.net/npm/dt/@mathieuc/tradingview)](https://www.npmjs.com/package/@mathieuc/tradingview)
[![npm version](https://badgen.net/npm/v/@mathieuc/tradingview)](https://www.npmjs.com/package/@mathieuc/tradingview)

<a href="https://trendshift.io/repositories/26416?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-26416" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/26416" alt="Mathieu2301/TradingView-API | #1 Repo Of The Day on Trendshift" width="250" height="55"/></a>

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

🌐 English · [Français](docs/README.fr.md) · [Español](docs/README.es.md) · [Português](docs/README.pt.md)

## 🟢 Need help with your project?

🚀 **[Click here to get help with your project](https://molted.studio/dreams/ai-agent-for-tradingview-data?utm_source=github&utm_medium=readme&utm_campaign=tradingview-api&utm_content=need-help)**

<a href="https://molted.studio/dreams/ai-agent-for-tradingview-data?utm_source=github&utm_medium=readme&utm_campaign=tradingview-api&utm_content=film"><img src="assets/readme-film.webp" alt="Film: a trader gets help from an AI agent that installs TradingView-API, backtests the setup and runs it on a demo account" width="100%"></a>

## ✨ 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](https://github.com/Mathieu2301/TradingView-API/issues/new/choose)

## 📦 Installation

```bash
npm i @mathieuc/tradingview
```

📚 [Getting started](docs/getting-started.md) · [Data API](docs/data-api.md) · [Backtest](docs/backtest.md) · [Low-level API](docs/low-level-api.md) · [Examples](examples)

## 🐛 Problems

If you have errors or unwanted behavior, please [open an issue](https://github.com/Mathieu2301/TradingView-API/issues/new/choose).

___

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