How to send TradingView alerts to Binance (step by step)
By the BotEdge team · · 7 min read
Short answer
Create a Binance API key with trading permission and withdrawals off, add it as a connection in BotEdge, then paste the webhook URL and alert message BotEdge gives you into your TradingView alert. From then on every alert becomes an order on your own Binance account, and you get an email confirming or explaining each one.
Key facts
- TradingView only sends webhooks from accounts with two-factor authentication on, and cancels a request that takes longer than three seconds.
- On Binance, use a System generated (HMAC) API key with spot or futures trading enabled and withdrawals never enabled.
- Every BotEdge connection gets its own 20-character pointer: the alert message carries it, so keep it private.
- Test first on the Binance testnet with a Demo connection: same alerts, virtual funds.
- Plans start at $12.99 a month with unlimited alerts.
What you need before you start
- A TradingView plan with webhook notifications (they are not part of the free plan) and two-factor authentication turned on: TradingView refuses webhook alerts without it.
- A Binance account with two-factor authentication and identity verification completed: Binance asks for both before it lets you create an API key.
- A BotEdge account: you sign in with Whop and connect Binance from the dashboard. See pricing.
- A TradingView strategy (or an indicator alert) on a Binance chart of the market you want to trade.
Step 1: create a Binance API key
- On binance.com, open your profile menu and go to API Management, then choose Create API.
- Pick System generated: Binance signs these keys with HMAC and shows you an API key and a Secret key.
- Name the key (for example
botedge) and confirm with your two-factor codes. - Edit the restrictions: enable Enable Spot & Margin Trading for spot, or Enable Futures for USD-M or COIN-M futures (open the futures account first if the option is missing).
- Leave withdrawals disabled. An execution service never needs to move funds out of your account.
- Under IP access, restrict it to BotEdge's server address (
161.35.155.159): a stolen key is then useless from anywhere else. - Copy the Secret key now: Binance shows it only once.
Careful
Never paste an API key into a chat, a spreadsheet or a TradingView alert. Only the connection form needs it, and it is stored encrypted.
Step 2: add the connection in BotEdge
- In your dashboard choose Add connection.
- Pick the market: Binance for spot, Binance USD-M for USDT-margined perpetuals, Binance COIN-M for coin-margined futures.
- Paste the API key and Secret key, choose Live or Demo, and save.
- The connection card now shows your pointer, the webhook URL (
https://hooks.botedge.net) and a ready-made alert message.
Step 3: create the TradingView alert
Open the chart of the exact Binance market you trade, add your strategy, and create an alert on it. In the alert's Notifications tab tick Webhook URL and paste:
https://hooks.botedge.net
As the alert message, paste the one from your connection card. It looks like this, with your own pointer in place of the placeholder:
{
"pointer": "YOUR_POINTER_HERE___",
"ticker": "{{ticker}}",
"action": "{{strategy.order.action}}",
"quantity": "{{strategy.order.contracts}}",
"prev_position": "{{strategy.prev_market_position}}"
}TradingView fills the {{...}} placeholders when the strategy fires: {{strategy.order.action}} becomes buy or sell and {{strategy.order.contracts}} the order size. Because the message is valid JSON, TradingView sends it as application/json. Every field is described in the alert message reference.
Good to know
Not using a strategy? Indicator and manual alerts work too: write the side and size yourself, for example "action": "buy", "quantity": "0.001". See indicator and manual alerts.
Step 4: test on the Binance testnet first
Before real money, run the same alert against Binance's test network. Its funds are virtual and its keys are created there, not on binance.com:
- Spot: log in at
testnet.binance.vision, generate an HMAC key, and add a Binance connection in Demo mode. - USD-M futures: create a key on
testnet.binancefuture.comand add a Binance USD-M connection in Demo mode. - Trigger the alert once, then check the result: you get an email, and the order appears in the trading journal of your dashboard with its status.
How order sizes work on Binance
| Market | What quantity means | Example |
|---|---|---|
| Binance spot | Coins of the base asset | 0.001 on BTCUSDT = 0.001 BTC |
| Binance USD-M | Coins of the base asset | 0.01 on ETHUSDT.P = 0.01 ETH |
| Binance COIN-M | Contracts (100 USD on BTC, 10 USD on most others) | 2 on BTCUSD perpetual = 200 USD |
Binance also enforces a minimum order value (the NOTIONAL filter) and a size step (LOT_SIZE) for each market. An order below the minimum, or with too many decimals, is not accepted, so test with a size comfortably above the minimum.
Common errors and how to fix them
| What you see | Why | Fix |
|---|---|---|
Order sent to an unexpected contract, such as BTCUSD_270326 | The chart was a dated futures contract (for example BTCUSDZ2026), so {{ticker}} sent that symbol | Alert from the right chart (BINANCE:BTCUSDT), or write the ticker in the message: "ticker": "BTCUSDT" |
| Order value too small | Below Binance's minimum notional for that market | Raise the quantity |
| Precision or lot size error | More decimals than the market's size step allows | Round the quantity to the market's step |
| Insufficient balance | Not enough quote currency (spot) or margin (futures) | Fund the account or lower the size |
| Invalid API key or permission error | Trading permission off, key deleted, or the IP restriction does not include the server | Check the key's restrictions on Binance, or create a new key |
| No order and no email at all | TradingView did not send the webhook | Turn on two-factor authentication, check the webhook URL and that the alert is active |
Every failed alert is explained in an email and in your trading journal. The error guide lists the messages exchanges return and what to change.
Frequently asked questions
- Do I need a paid TradingView plan to send alerts to Binance?
- Yes. Webhook notifications are a feature of TradingView's paid plans, and TradingView also requires two-factor authentication on the account before it sends webhooks.
- Is it safe to give an execution service my Binance API key?
- Use a key that can trade but never withdraw, and restrict it to the service's IP address. BotEdge stores the key encrypted and only uses it to place the orders your alerts ask for.
- Can I trade Binance futures from TradingView alerts?
- Yes. Enable futures on the API key and add a Binance USD-M connection for USDT-margined perpetuals, or Binance COIN-M for coin-margined futures. Alert from the matching perpetual chart, for example BTCUSDT.P.
- Can I test without real money?
- Yes. Create a key on the Binance test network (testnet.binance.vision for spot, testnet.binancefuture.com for futures) and add the connection in Demo mode. The alerts work the same way with virtual funds.
- What happens if an order fails?
- Nothing is retried blindly. You get an email with the reason, the alert is written in your trading journal as rejected, and the error guide explains the fix.
Sources
- TradingView: How to configure webhook alerts checked November 15, 2026
- TradingView: How to use a variable value in alert checked November 15, 2026
- Binance: How to create API keys on Binance checked November 15, 2026
- Binance Spot API: filters (NOTIONAL, LOT_SIZE) checked November 15, 2026
- Binance Spot Test Network checked November 15, 2026