Step 1
Create TradingView alert
Attach your strategy and create an alert on a Capital.com instrument.
Step 2
Paste JSON message and webhook URL
Configure message and notifications for real-time trade execution.
JSON
TradingView alert message template
{
"broker_email": "PUT YOUR CAPITAL.COM EMAIL HERE",
"broker_api_key": "PUT YOUR CAPITAL.COM API KEY HERE",
"broker_pass": "PUT YOUR CAPITAL.COM API KEY PASSWORD HERE",
"real_order": "Yes / No",
"order_type": "Market / Limit",
"order_market": "stock_forex",
"exchange": "capital_com",
"account_id": "default",
"ticker": "{{ticker}}",
"time": "{{timenow}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.order.action}}",
"order_price": "{{strategy.order.price}}"
}