Connect TradingView via webhook
Let TradingView alerts place orders through Fastbot: JSON templates for Binance, DNSE and eToro, plus the limits worth knowing.
If you run a strategy on TradingView, Fastbot can take your alerts over a webhook and place the orders for you — on all three exchanges.
How it works
TradingView posts a JSON payload to your bot's own webhook address whenever an alert fires. Fastbot verifies it with a secret, places the order, then messages you the result on Telegram.
Get your webhook address and secret
Message @fastbot_support for the two values that belong to your bot:
- Webhook URL — your bot's own address.
- Secret — the string that proves a signal came from you.
Create the alert on TradingView
- Create an Alert as usual.
- Under Notifications → Webhook URL: paste your webhook address.
- Under Message: paste the JSON from a template below.
- Save the alert. When the condition triggers, Fastbot places the order and messages you.
Template — Binance
{
"secret": "your-secret-here",
"exchange": "binance",
"market": "futures",
"symbol": "BTCUSDT",
"action": "buy",
"orderType": "market",
"qty": 100,
"qtyType": "usdt"
}
market is required for Binance: spot or futures. qtyType takes coin, usdt or percent. action takes buy, sell, close, close_and_reverse or cancel.
With an automatic take-profit and stop-loss:
{
"secret": "your-secret-here",
"exchange": "binance",
"market": "futures",
"symbol": "BTCUSDT",
"action": "buy",
"orderType": "market",
"qty": 100,
"qtyType": "usdt",
"tp": { "type": "limit", "price": 72000 },
"sl": { "type": "market", "triggerPrice": 67000 }
}
Template — Vietnamese stocks (DNSE)
{
"secret": "your-secret-here",
"exchange": "dnse",
"symbol": "HPG",
"action": "buy",
"orderType": "market",
"qty": 150,
"qtyType": "shares"
}
Use "qtyType": "vnd" to size by amount instead. Fastbot splits the board lot and odd lot exactly as it does for a manual order.
Template — US stocks (eToro)
{
"secret": "your-secret-here",
"exchange": "etoro",
"symbol": "SPY",
"action": "buy",
"orderType": "market",
"qty": 100,
"qtyType": "usd"
}
Crypto versus stocks
| Binance | DNSE & eToro | |
|---|---|---|
market | Required | Not used |
action | buy, sell, close, close_and_reverse, cancel | buy and sell only |
orderType | market, limit, stop_market, stop_limit | market and limit only |
tp / sl on the order | Supported | Rejected |
The two stock exchanges only accept signals during their trading hours. Outside them Fastbot refuses and tells you which session is currently running.
Things to remember
Treat the secret like a password. Anyone holding it can send signals into your bot. If you suspect it leaked, message support for a new one.
The .P suffix is handled. TradingView sends perpetual symbols as BTCUSDT.P; Fastbot strips the suffix itself.
Pause blocks webhooks too. Tapping ⏸ Pause Bot under ⚙️ Settings makes Fastbot ignore incoming signals until you resume. It is the fastest way to stop a strategy that is misbehaving.
Leverage still comes from Binance. A webhook signal cannot change leverage — it runs at whatever you already set for that pair on Binance.
Need a JSON template for your specific strategy? Message @fastbot_support.