TradingView: Supported JSON formats + examples

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

Quick answer

At minimum, send:

  • action (buy/sell/close)
  • ticker (symbol)

Example:

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

Symptoms

  • Webhook is received but trade doesn’t open
  • Logs show format/field errors

Most common causes

  • Wrong field names (e.g., using symbolName instead of ticker)
  • Sending non-JSON text
  • Missing required fields

Supported fields (common)

  • action: buy/sell/close/modify (aliases may work depending on setup)
  • ticker: symbol (aliases: symbol, pair)
  • sl: stop loss price level
  • tp: take profit price level
  • qty: quantity/size (optional)
  • secret: token (optional, recommended)

Examples

Minimal

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

With SL/TP

{"action":"buy","ticker":"EURUSD","sl":1.0850,"tp":1.0920}

With secret

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

Verify it worked

  1. Trigger the alert
  2. Open Logs and confirm webhook received and processed

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