Webhook

Send a signal from your own code.

One address, any app

Every bot with a TradingView source has a webhook address. Anything that can send a web request with a little JSON can use it: a script, a screener, a scheduled job.

The address +
Webhook addressGold London · XAUUSD · DemoConnected
WEBHOOK URL
https://api.traderframe.io/v1/alerts/trading-view/6721e4?secret=••••••••Copy
It comes from the bot’s TradingView source. Treat it like a password.
SEND
MethodPOSTHeaderContent-Type: application/jsonBodysymbol and side, as JSON
curl -X POST "https://api.traderframe.io/v1/alerts/trading-view/6721e4?secret=••••" \ -H "Content-Type: application/json" \ -d '{"symbol": "XAUUSD", "side": "buy"}'

From a terminal or a shell script.

The bot id and secret are shortened and hidden here.

Two fields the bot listens for

The body says which market and which way. Size, stop and target come from your bot’s own settings, so a request can never trade bigger than you set. Try a few.

The body +
TRY ONE
What arrivesJSON
{ "symbol": "XAUUSD", "side": "buy" }
PlacedA buy on XAUUSD, with the bot’s size, stop and target.
symbolThe bot’s marketneeded
sidebuy or sellneeded
entryThe price for a Limit orderLimit only
anything elseSize, stop and target are the bot’signored

How the bot reads each example on a Gold bot that trades XAUUSD.

Your bot checks every signal first

Requests to this address land in the bot’s Signals tab under TradingView, since it is the TradingView source’s address. Each shows placed, or held back by your own rules. Pick a row to see why.

Signals tab +
Gold London · SignalsXAUUSD · Demo
WHY

Placed

Inside your trading hours, under today’s trade count, under the daily loss limit. The bot placed it with its own size, stop and target.

RuleAll rules passed

A few of one day’s signals on an example Gold bot. Every rule here is one you set on the bot.

Before you send

Three things to get right in your code.

Before you start +
POST with JSONContent-Type: application/json.

Plain text is refused

Send the body as JSON with the symbol and the side.

Keep the secretIt’s part of the address.

Anyone with it can send

A wrong secret is refused. Keep the full address out of shared code.

One address per botEach bot has its own.

Send to each bot

To signal two bots, send one request to each address.

Questions

About webhook signals

  • Not today. Add TradingView as the bot’s source and use its address. It takes a request from any app, and the Signals tab lists it under TradingView.

  • No. TradingView’s paid plan is only needed to send alerts from TradingView itself.

  • No. Size, stop and target always come from the bot. Extra fields are ignored.

  • There is no close request. Send the opposite side to a bot set to follow the signal, or let the bot’s stop and target close it.

  • Nothing is placed, and it isn’t saved for later.

  • No. Webhook signals are on every plan, Free included.

From your code

Your code decides when. Your bot checks the rest.

A request from your own script goes to a bot on your broker account, checked against your hours and limits every time.

Webhook signals on every plan · through the TradingView source
One request
Gold London · XAUUSDDemo
  1. Request sent{"symbol": "XAUUSD", "side": "buy"}10:42
  2. Checkedinside your hours · 2 of 5 trades today10:42
  3. Placedthe bot’s size, stop and target10:42
Placed onYour broker · Demo