How to Configure TradingView Webhooks for Binance Futures
Step-by-step guide to connect, test, and automate your trades using TradingView webhook alerts and Binance Futures.
title: "How to Configure TradingView Webhooks for Binance Futures" seoTitle: "TradingView Webhook Setup for Binance Futures — Step-by-Step Guide" description: "Learn how to connect TradingView alerts to Binance Futures using webhooks. This guide covers alert configuration, JSON payload structure, and bot setup." excerpt: "Step-by-step guide to connect, test, and automate your trades using TradingView webhook alerts and Binance Futures." tags: ["webhooks", "tradingview", "binance", "automation"] publishedAt: "2025-01-15T00:00:00.000Z" featured: true ogVariant: "wavy" ogPalette: "pink"
What is a TradingView Webhook?
A webhook is an HTTP POST request that TradingView sends to a URL of your choice whenever an alert fires. This is the mechanism that connects your Pine Script strategy to an automated execution system.
When your alert condition is met on TradingView, it sends a JSON payload to your webhook URL. Your bot receives that payload, validates it, and places the corresponding order on Binance Futures.
TradingView sends webhook alerts in real time when the alert condition is met on bar close (or on tick, depending on your configuration). Make sure your alert is set to fire only once per bar to avoid duplicate signals.
Step 1 — Create Your API Keys on Binance
Before configuring TradingView, you need a Binance Futures API key pair with the correct permissions.
Required permissions:
- Reading — enabled
- Futures — enabled
- Withdrawals — disabled (never enable this)
Your Binance API key must have IP whitelisting enabled. Add the platform's outbound IP address to your key's whitelist before adding it to the platform. Keys without IP restrictions are a security risk.
Step 2 — Add Your API Keys to the Platform
Once your Binance API key is configured correctly, navigate to API Keys in your dashboard and add your key pair. The platform validates your keys against Binance before storing them — Encrypted and protected by Google Cloud.
Your API keys are encrypted before storage and decrypted only in worker memory during trade execution. They are never logged, never exposed in responses, and never stored in plaintext.
Step 3 — Create a Bot
Navigate to Bots and create a new bot. Configure:
- Trading pair — e.g.
BTCUSDT - Bot type —
TPSL(auto close at targets) orENTRY_EXIT(signal-driven close) - Amount — USDT amount per trade
- Leverage — 1x to 125x
After validation and payment, your bot becomes active and a unique webhook URL is generated.
Step 4 — Configure the TradingView Alert
In TradingView, open your strategy or indicator and create a new alert.
Set the Webhook URL field to your bot's webhook URL.
In the Message field, use this JSON structure:
{
"token": "your_secret_token",
"action": "BUY"
}For ENTRY_EXIT bots, use "action": "BUY" for entry signals and "action": "EXIT" for exit signals. The bot will open a position on BUY and close it on EXIT.
Step 5 — Test Your Webhook
Use TradingView's Test button in the alert creation dialog to send a test payload to your webhook URL. Check your bot's logs in the dashboard to confirm the signal was received and processed.