TradingView

Supported JSON formats and examples

DaneTrades expects TradingView alerts to arrive as valid JSON. The safest path is to keep the payload minimal at first, then add stop loss, take profit, quantity, or secret fields only after the base format is working in Logs.

Minimum fields

At minimum, send these fields:

  • action such as buy, sell, or close
  • ticker for the symbol

Safe starting examples

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

Most common payload mistakes

  • Wrong field names, such as sending something other than ticker without matching the expected format.
  • Sending plain text instead of JSON.
  • Missing required fields.