WebSocket vs REST APIs on Crypto Exchanges: What's the Difference
If you are wiring a strategy up to an exchange, one of the first technical forks you hit is WebSocket vs REST APIs on a crypto exchange. Both let your code talk...
A trading webhook explained in plain terms: what a webhook is, how it carries a signal from TradingView to an execution layer, and how that message becomes an exchange order.
You set up an alert in TradingView, picked the "Webhook URL" option, pasted in a link, and wondered what actually happens when it fires. This is a trading webhook explained from the ground up: what a webhook is, what travels inside one, and how that small message turns into a real order on your exchange. If you have ever seen the word "webhook" in an automation tutorial and nodded along without quite knowing the mechanism, this guide is for you.
We will keep it concrete and skip the hype. No strategy recommendations, no promises — just how the plumbing works so you can reason about your own setup.
A webhook is a way for one system to tell another system "something just happened" the instant it happens. Technically, it is an automated HTTP request: when an event occurs, the source system sends a small packet of data to a URL you provide. Think of it as the difference between checking your mailbox every hour (polling) and having the mail carrier ring your doorbell the moment a letter arrives (a webhook). The event pushes the data to you, rather than you constantly asking "anything yet?"
In trading, the "something happened" is a signal condition: a moving-average cross, an RSI level, a channel break, or any rule you defined. The webhook is how that event leaves TradingView and reaches whatever is going to act on it.
A webhook has two important parts: the destination URL and the payload. The URL is the address of the receiver — the server that will catch the message and decide what to do. The payload is the body of the request: a short, structured message, usually JSON, that describes the trade you want.
A typical payload carries the essentials an execution layer needs to build an order:
TradingView lets you write this message yourself in the alert dialog and inject live values using placeholders. The exact structure matters, because the receiver parses it the same way every time. If the format drifts, the order is rejected or ignored. Our guide on the TradingView alert message format for automated orders shows working examples.
Here is the full path a signal travels, from condition to confirmed order:
Steps one and two are the signal. Steps three through seven are execution — and that handoff is where most homegrown setups break. For a fuller treatment, see signals vs execution: why your alerts aren't placing trades.
The moment a webhook can place an order, it touches your exchange account — which makes the receiver a security decision, not just a piece of plumbing. Two things matter most.
First, authenticate the webhook. Because the URL accepts incoming requests, anyone who learns it could attempt to POST to it. A shared secret in the payload (or an HMAC signature) lets the receiver reject anything that isn't genuinely yours.
Second, scope the exchange key tightly. The safest arrangement is a dedicated trade-only key: the execution layer places orders, never withdrawals. Withdrawal permission stays disabled at the exchange, so even a leaked key cannot move your funds, and your assets never leave the exchange you already use. If you're weighing how much access to grant, read is it safe to give a trading bot your exchange API keys.
SignalToExchange is the receiver on the other end of your webhook. It is non-custodial execution infrastructure: it catches the request, authenticates it, validates it against your rules, formats the order for your exchange, and submits it using a trade-only key that's encrypted at rest. It never takes deposits, never holds balances, and deduplicates so that one signal fires exactly one order. Your funds never leave your exchange, and you keep the kill switch by deleting the key whenever you choose. To see the full path wired up end to end, start with the TradingView webhook to exchange setup guide.
If you already generate signals and want a secure, reliable way to turn them into exchange orders, Request access / start your free trial →
Automated trading involves risk. SignalToExchange is execution infrastructure and does not provide financial advice, trading signals, or guarantees of any kind.
Non-custodial execution. Trade-only API keys. Independent infrastructure built for reliability.
Request Early AccessTrade-only API key enforcement. No withdrawal permissions. No custody.