Skip to content
Terminal

Updated .

How to send a TradingView alert to a Discord channel

Paste the Discord channel's incoming webhook address into a TradingView alert, with 2-factor authentication on, and set the message to valid JSON that includes a content field. TradingView sends a POST, and that message is the body. If the message is not valid JSON, TradingView sends plain text instead.

What TradingView requires before it sends

On 12 November 2026, TradingView's pricing page showed webhook notifications like this.

Plan columnWebhook notifications
BasicCross mark
EssentialCheck mark
PlusCheck mark
PremiumCheck mark
UltimateCheck mark

Webhook alerts are only allowed when 2-factor authentication is enabled. You can enable the webhook when you create or edit an alert. When the alert is triggered, TradingView sends a POST to that address, with the alert message as the body.

Valid JSON is sent as application/json. Anything else is text/plain, the default. The page's Slack example, {"text": "BTCUSD Greater Than 9000"}, is valid JSON, and Discord's main execute list has no text field. Discord also documents a Slack-compatible path ending in /slack, and says that path does not support Slack's channel, icon_emoji, mrkdwn, or mrkdwn_in properties.

Only ports 80 and 443 are accepted. If the server takes longer than three seconds, TradingView cancels the request. IPv6 is not currently supported. The alert log's Webhook status column shows each delivery. Missed sends are in Why a webhook fails.

Plan caps are in alert limits by plan. Chart alerts and exchange alerts are in the chart and exchange comparison. A feature table is in the side-by-side comparison.

What Discord accepts in the body

On 12 November 2026 Discord's overview said an incoming webhook is an address tied to one channel. A POST puts the message there, with no bot and no persistent connection. Webhooks do not require a bot user or authentication. Type 1, Incoming, can post with a generated token. Execute is a POST to a path of the webhook id, then the token.

Provide at least one of content, embeds, components, file, or poll. Content is the message, up to 2000 characters. Embeds allow up to 10. A forum or media channel needs thread_id or thread_name. Code 220001 is a forum post with neither, and 220002 is a forum post with both.

What to put in the message

{{ticker}} is the symbol's ticker. {{exchange}} is its exchange. A delayed symbol ends the exchange with _DL or _DLY, as in NYMEX_DL. {{close}}, {{open}}, {{high}}, {{low}}, and {{volume}} are the bar's values, as fixed-point numbers such as 1245.25. {{time}} is UTC, in the form yyyy-MM-ddTHH:mm:ssZ. {{timenow}} is the fire time, in that form, to the nearest second.

A simple price alert is always calculated on 1-minute bars. For a price-based alert, and on a Range chart, {{interval}} returns 1.

One message you can type, with the placeholders inside content, is:

``json {"content": "{{exchange}}:{{ticker}} {{close}}"} ``

The page's sample, with no JSON around it, is {{exchange}}:{{ticker}}, price = {{close}}, volume = {{volume}}. Strategy placeholders work only in a strategy alert, and the message above uses none. A body whose only key is text leaves out Discord's required group. Code 50006 means "Cannot send an empty message."

What the error pages name

If the message is not valid JSON, TradingView sends text/plain. Discord's code 50109 means "The request body contains invalid JSON." Code 50035 means an invalid form body or an invalid Content-Type. TradingView lists "invalid data format in the request body (invalid JSON)" as a 4xx cause.

Code 10015 means Unknown webhook. Code 50027 means "Invalid webhook token provided." Status 404 means that resource does not exist. After a 404, stop using that webhook, because repeated attempts bring a temporary restriction. TradingView's 4xx list includes "endpoint does not exist." Under "URL unavailable or invalid," the causes are a typo in the URL, a localhost or internal IP, and a domain that is not configured.

Status 429 means you are being rate limited. The Retry-After header or the retry_after field gives the seconds to wait. Limits change, and an app reads the headers rather than storing a fixed number. TradingView lists "exceeding the allowed number of requests to the server" as a 4xx cause. More limits are in Discord alerts without the noise.

What a relay adds

Webhook Relay's guide, opened on 12 November 2026, describes a service that receives the POST, rewrites it as content or embeds, can send it onward to more than one destination, and can add an authorization header from its own settings.

Why the address stays private

The token is part of the address. Getting, changing, and deleting the webhook with that token do not require authentication, and execute uses the same token. Anyone with the address can post in the channel and can delete the webhook. TradingView says not to put login credentials or passwords in the body. Keep the address private.

How often one alert can post

On 12 November 2026 TradingView listed four frequency settings. Once only triggers once. Once per bar triggers when the conditions are met, no more than once on that bar. Once per bar close waits for the bar to close. Once per minute or every time checks every minute and triggers whenever the conditions are met. Schedules are in alerts that stay quiet.

Terminal posts the alerts you set into a Discord channel through an incoming webhook, on every plan. The steps are on email or Discord and on Delivery. Channel posts and a daily market card are on Pro and Community, and paid plans are not open yet (community channel posts). On 12 November 2026 the home page listed signed webhooks to your own server under built, opening later. It is not investment advice.

FAQ

Do I need a Discord bot?

No. Discord's page says an incoming webhook posts into one channel with no bot and no persistent connection. A bot fits an app that also listens or responds. The execute address already carries the webhook id and token.

Which TradingView plans send webhooks?

On 12 November 2026 the pricing comparison showed a cross on Basic and a check on Essential, Plus, Premium, and Ultimate. Webhook alerts are only allowed when 2-factor authentication is enabled.

Why did Discord answer with an error?

When the message is not valid JSON, TradingView sends plain text. Discord's 50109 means invalid JSON, and 50035 means a bad form body or content type. Code 10015 means an unknown webhook, 50027 means a bad token, and 404 means the resource is missing. Status 429 means you are being rate limited, and the response gives the seconds to wait.

Sources

Opened 2026-11-12 unless a page prints its own date.

Start free