Configure TradingView webhook alerts for Capital.com

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

Step 1

Create TradingView alert

Attach your strategy and create an alert on a Capital.com instrument.

Strategy
TradingView strategy
Alert
TradingView alert
Step 2

Paste JSON message and webhook URL

Configure message and notifications for real-time trade execution.

Message
Alert message
Example
Capital.com alert example
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}}"
}