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

{
  "broker_api_key": "PUT YOUR GATE.IO API KEY HERE",
  "broker_api_secret": "PUT YOUR GATE.IO SECRET HERE",
  "account_type": "Spot / Margin / Cross_margin / Unified",
  "real_order": "Yes / No",
  "order_market": "Spot / Futures",
  "order_type": "Market / Limit",
  "exchange": "GATEIO",
  "ticker": "{{ticker}}",
  "time": "{{timenow}}",
  "order_contracts": "{{strategy.order.contracts}}",
  "order_action": "{{strategy.order.action}}",
  "order_price": "{{strategy.order.price}}"
}