Community Node: TradingView Realtime API Integration using @mathieuc/tradingview

Request: TradingView Node using @mathieuc/tradingview package

Hi everyone :waving_hand:,

I’m a beginner to n8n and would love to have a custom community node for integrating with TradingView’s real-time API using the excellent @mathieuc/tradingview npm library.

:wrench: Use Case

The library allows fetching real-time market prices, indicators, screeners, hotlists, calendar events, and more — which would be extremely useful in automated workflows like:

  • Trading bots
  • Real-time alerts via Telegram, Discord, or Email
  • Trade data & signal automation from invite-only scripts
  • Machine Learning signal feeds
  • Backtesting with replay mode
  • Real-time execution based on personal alerts or trades

This library supports fetching data that’s normally restricted, such as:

  • Real-time alerts and trade data from your own account
  • Invite-only scripts and indicators
  • Chart drawings and replay analysis

:package: Library Info

:white_check_mark: Ideal Node Actions

I’d love the node to support:

  • getTicker
  • getScreenerTop
  • getTechnicalAnalysis
  • getCalendar
  • getHotlists
  • getDrawings
  • loginWithSession (manual setup using session + sign)
  • Real-time alerts & invite-only script handling

:folded_hands: Why I’m Requesting Help

I’m still learning n8n node development, and this library is based on WebSocket communication and sessions which are a bit advanced. It would be amazing if someone could collaborate, contribute, or even help mentor me in building this as a full community node.


Thanks in advance to anyone interested in helping or building this! :blush:

If you’re exploring ways to connect TradingView’s real-time API to n8n using the @mathieuc/tradingview library, one approach that’s worked well for me is pairing the WebSocket data feed with a lightweight automation layer that handles both authentication and action triggers.

For example, I’ve been experimenting with a setup where incoming market data (like technical analysis values or screener results) is fed directly into a trading bot workflow. The bot then evaluates the signals against my strategy parameters and sends orders to my broker automatically. This is similar to what Push Button Trading focuses on simplifying complex, real-time trading workflows so they run hands-free once configured.

If you want to see an example of an automated signal-to-execution workflow and learn how you could adapt it for your own n8n + TradingView setup, you can click here for a breakdown of the process. Even if you don’t copy it exactly, it might give you ideas on handling session-based logins and invite-only script data in a stable, production-ready way.

One tip: when integrating with TradingView, make sure you manage WebSocket reconnections gracefully, a dropped connection during volatile market moments can throw off your whole workflow. Using a heartbeat or ping/pong mechanism from the library will help keep your feed alive and responsive.

1 Like