TradingView webhook payload
Exact fields read by WebhookIngress when a TradingView alert reaches TheConnector.
# Purpose This page documents the public WebhookIngress contract for TradingView alerts. It is not the dashboard manual-order payload.
# Access path
- In the client workspace:
Accounts> open a trading account > copy the access key. - In TradingView:
Alert>Notifications> pastehttps://webhook.theconnector.fr/YOUR_ACCESS_KEYinWebhook URL. - In TradingView's
Messagefield, paste the JSON message.
# Minimal JSON
{
"action": "buy",
"symbol": "EURUSD",
"risk": 1,
"sl": 20,
"tp": 40
}
# Fields read by WebhookIngress
actionis required. Accepted aliases:side,type,command,msgtype.symbolis required for trading commands. Accepted aliases:pair,ticker,instrument,market,asset.riskis passed as a numeric risk value. For explicit lot size, usevolume,lot,lotsorfixedVolume.slandtpare the current stop loss / take profit names. Accepted aliases:stoploss,stop_loss,takeprofit,take_profit.priceis used only for pending orders:buystop,buylimit,sellstop,selllimit.ticket,orderId,order_id,positionIdorposition_idare used only when the instruction targets a known order or position.account/accountCodeandplatformare optional with the account URL; they are useful only for shared routing setups.streamIdoridcan be sent for tracking. If omitted, the server creates a tracking id.clientRequestedAtUtc,requestedAtUtcorrequestedAtmay be sent as an informational UTC timestamp.
# One-line fallback JSON is recommended, but WebhookIngress also accepts comma-separated text:
buy,EURUSD,risk=1,sl=20,tp=40
# What not to send Do not rely on ttl_ms, vol_lots, sl_pips or tp_pips: the current WebhookIngress parser does not read these names. Use the account price mode to decide how sl, tp and price are interpreted by the robot.
# Existing third-party scripts Do not assume that a message built for another connector is compatible as-is. Keep the strategy logic if you want, but verify and adapt the TradingView message fields above.
Need a broker-specific edge case? Contact support