Skip to main content
0
T

TradingView Binance Telegram Bot

An automated trading bot connecting TradingView alerts via webhook to the Binance API, and sending o

Rating

0.0

Votes

0

score

Downloads

0

total

Price

Free

API key required

Works With

Claude CodeCursorWindsurfVS CodeDeveloper tool

About

TradingView-Binance-Telegram-Bot

Flask | Binance API | Telegram API | TradingView Webhook | JSON

(This project was made quite a few years ago and is seriously outdated. This most likely doesn't work out of the box anymore, and I will not make updates. -Trevor 07/08/2025)

An automated trading bot connecting TradingView alerts via webhook to the Binance API, and sending order confirmations or errors to a Telegram user. The user can also send commands to the bot to make new trades, download trade history, cancel open trades, and a variety of other options!

How to run the trading bot

This bot is operated by Flask.

Local Server: After installing the requirements from requirements.txt, open your preferred terminal, navigate into the main directory and type the command "flask run"

Remote Server: After installing Python and the requirements from requirements.txt, configure your server using WSGI. This ensures that your bot is always running. The command "flask run" is not needed for remote servers, unless you want to test the bot in debug mode.

How does the trading bot work?

There are four parts to this trading bot:

  1. 1.Receives TradingView alerts via webhook, at the endpoint "/botwebhook" (found in file app.py)
  2. 2.Send order to Binance API (found in file app.py)
  3. 3.A Telegram messaging bot sends order confirmations from Binance API and error messages to the Telegram bot admin (found in file bot.py)
  4. 4.Send Telegram commands to a Telegram bot connected to the main application.

The user of this trading bot must make a config.py (or a .json file) that holds the desired Binance API keys and the Telegram bot keys. The user must also create a Telegram bot in order to receive notifications from the trading bot.

TradingView Webhook Alert

Set up your TradingView alert to send a JSON message like this:

{ "passphrase": "Your passphrase here", "time": "{{timenow}}", "exchange": "{{exchange}}", "symbol": "{{ticker}}", "quantity": 1.0, "side": "{{strategy.order.action}}", "type": "LIMIT", "timeInForce": "GTC", "currentPrice": {{close}} }

You can change and add any variable you want, as long as it's in JSON format. Any additions, however, must be added to the Binance API call in app.py as well, because the code in app.py will read directly from this alert message.

On TradingView, make sure to include the desired url you would like to send in the 'Webhook URL' input (ex: http://your.server.address/botwebhook)

Telegram Bot

Commands

Don't lose this

Three weeks from now, you'll want TradingView Binance Telegram Bot again. Will you remember where to find it?

Save it to your library and the next time you need TradingView Binance Telegram Bot, it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.

⚡ Pro tip for geeks: add a-gnt 🤵🏻‍♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.

🤵🏻‍♂️

a-gnt's Take

Our honest review

This plugs directly into your AI and gives it new abilities it didn't have before. An automated trading bot connecting TradingView alerts via webhook to the Binance API, and sending o. Once connected, just ask your AI to use it. It's completely free and works across most major AI apps. This one just landed in the catalog — worth trying while it's fresh.

Tips for getting started

1

Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.

2

Heads up: this needs an API key to work. You'll get one from the service's website (usually free). The setup guide tells you exactly where.

What's New

Version 1.0.06 days ago

Imported from GitHub

Ratings & Reviews

0.0

out of 5

0 ratings

No reviews yet. Be the first to share your experience.