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 Add 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 Message, then add your TradeAdapter webhook URL under Notifications (a paid TradingView plan).

  • Copy the alert JSON from your Strategy under My Brokers, or start from 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: the By Strategy timeline shows every executed, rejected and unconfirmed order for real-time trade execution visibility. Filter it by type or pick one strategy to see why an order stopped.

TradeAdapter My Trades by strategy: type filters, strategy filter and the trade timeline
JSON

TradingView alert message template

Credentials live on the broker you saved under My Brokers; market, ticker, order type, and quantity are configured once on that broker's Strategy — never in the TradingView alert. TradingView only sends the strategy name plus per-signal values. If your strategy uses Limit order type, or has Stop Loss / Take Profit enabled, also include "order_price": "{{close}}" in the alert. If your strategy has "Sync with TradingView position" enabled, also include market_position and prev_market_position from your strategy.

{
  "strategy_name": "binance-momentum",
  "order_action": "{{strategy.order.action}}",
  "order_contracts": "{{strategy.order.contracts}}"
}

Field reference

strategy_name
The name you gave this Binance Strategy under My Brokers. Identifies which saved credentials and trading settings to use — never put API keys in the alert.
order_action, order_contracts
Filled automatically by TradingView from your Pine strategy at alert time.
time
Alert timestamp, filled automatically by TradingView.

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 check the Demo / testnet account box when you save that broker under My Brokers.