Step 1
Create TradingView alert
Add your strategy and create an alert on a Gate.io symbol.
Step 2
Set webhook URL and JSON message
Use your TradeAdapter webhook URL and JSON template for real-time trade execution.
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}}"
}