Send supported TradingView alert fields into TradeInsights as draft records, then review the data before it enters your analytics history.
A valid webhook request can create a draft record for review. Delivery and processing timing are not guaranteed.
SHA-256 hashed tokens with per-token rate limiting. Revoke tokens instantly.
Send a "close" action to automatically close the matching open trade with P&L calculation.
Go to the Developer Portal and create a webhook token. You'll get a unique URL to use in TradingView.
Open any chart on TradingView. Click 'Alert' to create a new alert with your preferred conditions (indicators, price levels, etc.).
In the alert settings, enable 'Webhook URL' and paste your unique webhook URL from Step 1.
In the 'Message' field, paste the JSON payload format. Use TradingView's built-in variables for dynamic data.
Copy this JSON template into your TradingView alert message field
{
"symbol": "{{ticker}}",
"action": "buy",
"price": {{close}},
"timestamp": "{{timenow}}"
}Change "buy" to "sell" for short positions.
{
"symbol": "{{ticker}}",
"action": "close",
"price": {{close}},
"timestamp": "{{timenow}}"
}This closes the most recent open trade for the symbol and calculates P&L.
| Field | Required | Description |
|---|---|---|
| symbol | Trading symbol (e.g., BTCUSDT, EURUSD) | |
| action | buy, sell, or close | |
| price | Optional | Alert trigger price (defaults to 0) |
| timestamp | Optional | ISO timestamp (defaults to now) |
| quantity | Optional | Position size (defaults to 1) |
Tokens are SHA-256 hashed before storage. We never store the raw token.
Default rate limit: 60 requests per minute per token. Exceeding this returns a 429 status.
Up to 5 active webhook tokens per account. Revoke unused tokens for security.
Available for Premium and Pro subscribers.
TradingView controls webhook availability and can change plan requirements. Confirm that webhook URLs are enabled for your current TradingView plan before configuring the integration.
The webhook creates a draft trade pre-filled with the symbol, direction, and entry price from the alert. You review and submit it in TradeInsights — so you always stay in control before anything is logged.
Use variables that map to the payload fields currently documented in the Developer Portal, such as supported symbol, action, price, size, and timestamp values. Unsupported or malformed fields may be rejected or omitted.
Yes. Each webhook token is unique to your account and is SHA-256 hashed before storage — we never store the raw token. Tokens can be revoked at any time from the Developer Portal.
Webhook integration is available on Premium ($24/month) and Pro ($49/month) plans. It is not available on the free plan.