Connect TradingView alerts to Binance

Set up strategy alerts, JSON payloads, and webhooks for TradingView to Binance automation in TradeAdapter.

This page completes TradingView webhook automation into Binance. Configure the alert, message JSON, and webhook URL — then validate results in TradeAdapter.

Video

Watch the TradingView setup walkthrough

Step 1

Use a Binance symbol on TradingView

On your chart, confirm the symbol is from Binance. For this route, use SPOT or SWAP symbols only.

Binance SPOT or SWAP symbol on TradingView for webhook automation
Step 2

Add a Pine strategy to the chart

Open Pine Editor, add your strategy code, and click Add to chart. TradeAdapter automation works with Pine strategies (not indicator-only alerts by default).

TradingView Pine Editor strategy added to chart for Binance execution
Step 3

Create a TradingView strategy alert

In Strategy Tester, verify results, then click Create Alert on the strategy so buy/sell events can automate TradingView alerts to TradeAdapter.

Create TradingView strategy alert for TradingView to Binance routing
Step 4

Set alert message and webhook URL

Paste your JSON alert payload in the Message tab, then add your TradeAdapter webhook URL under Notifications (TradingView Pro or Pro+).

  • Build JSON with the Message Generator or the template below
  • Copy your personal webhook URL from your Profile after you sign in
Message
TradingView alert message JSON for Binance webhook automation
Notifications
TradingView webhook URL notification for TradeAdapter
Step 5

Verify execution on My Trades

After an alert fires, open My Trades to confirm TradeAdapter received the webhook and routed the order for real-time trade execution visibility.

TradeAdapter My Trades log for TradingView to Binance orders
JSON

TradingView alert message template

Replace only the credential and routing fields. TradingView auto-fills strategy placeholders when the alert triggers.

{
  "binance_api_key": "PUT YOUR BINANCE API KEY HERE",
  "binance_secret": "PUT YOUR BINANCE SECRET HERE",
  "real_order": "Yes / No",
  "order_market": "Spot / Margin / Futures",
  "order_type": "Market / Limit",
  "isolated_margin": "Yes / No",
  "auto_rounding": "Yes",
  "exchange": "{{exchange}}",
  "ticker": "{{ticker}}",
  "time": "{{timenow}}",
  "order_contracts": "{{strategy.order.contracts}}",
  "order_action": "{{strategy.order.action}}",
  "order_price": "{{strategy.order.price}}",
  "market_position": "{{strategy.market_position}}",
  "market_position_size": "{{strategy.market_position_size}}",
  "prev_market_position": "{{strategy.prev_market_position}}",
  "prev_market_position_size": "{{strategy.prev_market_position_size}}"
}
Example TradingView webhook JSON for Binance automation

Field reference

binance_api_key / binance_secret
Credentials from page 1 (live Binance or Futures testnet path).
real_order
Yes for live Binance.com orders; No for test flows (see Test orders).
order_market / order_type
Choose Spot, Margin, or Futures and Market or Limit routing.
auto_rounding
Keeps size and price aligned with Binance filters.
exchange, ticker, order_*
Populated automatically by TradingView at alert time.

How test orders work

  • Spot: test orders still use your live Binance.com API credentials.
  • Margin: Binance does not support test orders — validate with the smallest live size.
  • Futures: use Binance Futures testnet credentials from the Futures testnet API path and set real_order to No.