TradingView: Security (secrets/tokens)

Created by Levi Dane, Modified on Tue, 30 Dec, 2025 at 5:30 AM by Levi Dane

Quick answer

Use a webhook secret/token so random internet traffic can’t trigger trades.

  1. Set a secret when creating the TradingView account (or in settings)
  2. Include secret in every TradingView alert message

Symptoms (when you need this)

  • You want protection against unauthorized webhook calls

Best practices

  • Use a long, random token
  • Keep it private (don’t paste it into public screenshots)
  • Rotate it if you suspect it leaked

Example

{"action":"buy","ticker":"EURUSD","secret":"YOUR_TOKEN"}

Verify it worked

  1. Trigger an alert with the correct secret → should work
  2. Trigger an alert with the wrong secret → should be rejected (Logs should show it)

This article is auto-synced from the Danetrades Copier knowledge base. If something is outdated, please contact support.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article