Skip to content

A webhook written in Typescript to send TradingView alerts to a Telegram Bot.

Notifications You must be signed in to change notification settings

raftheunis87/tradingview-to-telegram-webhook-bot

Repository files navigation

NodeJS version GitHub issues GitHub pull requests
GitHub stars GitHub forks GitHub watchers

AboutFeaturesInstallationImagesHelp

About

The TradingView To Telegram Webhook Bot listens to TradingView alerts via webhooks using NestJS. All alerts can be instantly sent to Telegram.

Features

  • Telegram Support using the NestJS Telegram libary
  • TradingView {{exchange}}, {{ticker}} etc. variables support. Read more here

💡 Got a feature idea? Open an issue and I might implement it.

Installation

⚠️ Best to run the bot on a VPS. I can recommend Hetzner.

  1. Install NodeJS

  2. Clone this repository git clone https://github.com/raftheunis87/tradingview-to-telegram-webhook-bot.git

  3. Install all requirements npm install

  4. Set the required environment variables

    • TELEGRAM_BOT_TOKEN is the token you receive after creating a bot with the BotFather
    • TELEGRAM_CHAT_ID is the id of the telegram group or channel in which the bot will give the TradingView alerts.

    More information on how to set environment variables for your specific os can be found here

  5. Setup TradingView alerts as shown here

    • TradingViews variables like {{exchange}}, {{ticker}} etc. work as well. More can be found here
    • Your webhook url would be http://<YOUR-IP>/bot/v1/alerts
  6. If you use a firewall be sure to open port the corresponding port

  7. Run the bot npm run build && npm run start:prod

This application will run at port 4000 by default. It is then necessary to forward port 80 to 4000. If you want to run this on a different port, you can set a PORT environment variable with the port number of your own choice.

How can I help?

All kinds of contributions are welcome 🙌! The most basic way to show your support is to ⭐️ star the project, or raise 🐞 issues. You can also buy me some ☕️ coffee to help keep me productive! You can also sent me some crypto to the following addresses:

  • BTC: 16RvXgVz8DAtrC5J3tTC5TPmoUVzctzN3C
  • ETH: 0x55d1d279e20be28a1cebe48eaa879c80e7fbc3a9

Thanks again for your support, it is much appreciated! 🙏

About

A webhook written in Typescript to send TradingView alerts to a Telegram Bot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published