MCPcopy
hub / github.com/Mathieu2301/TradingView-API

github.com/Mathieu2301/TradingView-API @v3.5.2 sqlite

repository ↗ · DeepWiki ↗ · release v3.5.2 ↗
124 symbols 307 edges 41 files 88 documented · 71%
README

TradingView API GitHub stars

Tests CodeFactor GitHub latest commit Npm package yearly downloads Minimum node.js version Npm package version

Get realtime market prices and indicator values from Tradingview !

🟢 Need help with your project?

🚀 Click here for personalized assistance on your project.

🔵 Telegram group

👉 To get help, exchange tips, find collaborators, developers, missions, etc...

Join the Telegram group of the TradingView-API Community: t.me/tradingview_api

Features

  • [x] Premium features
  • [x] Automatically backtest many strategies and try many settings in a very little time
  • [x] Get drawings you made on your chart
  • [x] Works with invite-only indicators
  • [x] Unlimited simultaneous indicators
  • [x] Realtime
  • [x] Get TradingView's technical analysis
  • [x] Replay mode + Fake Replay mode (for free plan)
  • [x] Get values from a specific date range
  • [ ] TradingView socket server emulation
  • [ ] Interract with public chats
  • [ ] Get Screener top values
  • [ ] Get Hotlists
  • [ ] Get Calendar
  • IF YOU WANT A FEATURE, ASK ME !

Possibilities

  • Trading bot
  • Discord alerts
  • Hard backtest
  • Machine Learning based indicator
  • Free replay mode for all timeframes

Installation

Stable version:

npm i @mathieuc/tradingview

Last version:

npm i github:Mathieu2301/TradingView-API

Examples

You can find all the examples and snippets in ./examples folder.

Before opening an issue

Please look at examples and previously resolved issues before opening a new one. I can't help everyone (especially for questions that are not library related but JavaScript related). Thank you for your understanding.


Problems

If you have errors in console or unwanted behavior, please create an issue here.

Core symbols most depended-on inside this repo

setMarket
called by 42
src/chart/session.js
send
called by 29
src/client.js
end
called by 16
src/client.js
setOption
called by 16
src/classes/PineIndicator.js
onUpdate
called by 15
src/chart/study.js
onError
called by 12
src/client.js
delete
called by 10
src/chart/session.js
genAuthCookies
called by 8
src/utils.js

Shape

Method 78
Function 30
Class 16

Languages

TypeScript100%

Modules by API surface

src/chart/session.js22 symbols
src/client.js18 symbols
src/chart/study.js16 symbols
src/miscRequests.js14 symbols
src/classes/PineIndicator.js13 symbols
src/quote/market.js10 symbols
src/classes/PinePermManager.js7 symbols
src/classes/BuiltInIndicator.js6 symbols
src/quote/session.js5 symbols
src/protocol.js3 symbols
tests/utils.ts2 symbols
src/utils.js2 symbols

Dependencies from manifests, versioned

@babel/eslint-parser7.15.7 · 1×
@mathieuc/console1.0.1 · 1×
axios1.5.0 · 1×
dotenv16.3.1 · 1×
eslint7.25.0 · 1×
eslint-config-airbnb-base14.2.1 · 1×
eslint-plugin-import2.22.1 · 1×
jszip3.7.1 · 1×
vitest0.31.4 · 1×
ws7.4.3 · 1×

For agents

$ claude mcp add TradingView-API \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact