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:
My 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.tag(aliascomment) names the strategy an alert belongs to. On an entry it is written into the position's broker comment; on a close it restricts the close to the positions carrying that name, so several strategies can share one account and one symbol. It is lowercased and cut to 12 characters, and it is honoured from robot 0.0.21 onwards — below that version a tagged close is refused rather than played on another strategy's position. Send your ownstreamIdand the generated one is replaced, so the tag never reaches the position comment: leavestreamIdout when you use tags.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.