Configure TradingView webhook alerts for Gate.io

Complete the webhook step for tradingview webhook automation and route structured alerts from TradingView to Gate.io through TradeAdapter.

Step 1

Create TradingView alert

Add your strategy and create an alert on a Gate.io symbol.

Strategy
TradingView strategy
Alert
TradingView alert
Step 2

Set webhook URL and JSON message

Use your TradeAdapter webhook URL and JSON template for real-time trade execution.

Message
Alert message
Webhook
Webhook
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. If your Gate.io strategy is on the Spot market with Market order type, also include "order_price": "{{close}}" in the alert — Gate.io needs it for rounding even though the order still executes at market. The same field is also required if your strategy uses Limit order type, or has Stop Loss / Take Profit enabled. If your strategy has "Sync with TradingView position" enabled, also include market_position and prev_market_position from your strategy.

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