TradingView webhook to broker: alerts to live orders
Point any TradingView alert at one webhook URL. Quanify resolves the contract, applies your sizing and guards, and routes the order to your broker.
Connect a TradingView alert to Tradovate
- 01
Connect Tradovate
Sign in over OAuth. Each sub-account, demo or live, shows up on its own.
- 02
Create a strategy
It gets its own webhook URL, and the Webhook dialog writes the alert message from its settings.
- 03
Paste into the alert
In TradingView, put the URL under Notifications and the message in the alert body.
- 04
Attach accounts, power on
Pick the accounts, set each multiplier, then power on. Test on a demo account first.
The alert message
TradingView fills the placeholders when a strategy alert fires. A password line is added when you set one on the strategy, and a fixed contract size replaces the contracts placeholder.
- Accepts TradingView's
text/plain - Extra fields are ignored, so other variables can ride along
POST https://trade.quanify.pro/api/webhooks/<your-token>
{
"action": "{{strategy.order.action}}",
"ticker": "{{ticker}}",
"contracts": "{{strategy.order.contracts}}",
"price": "{{strategy.order.price}}",
"market_position": "{{strategy.market_position}}"
}Alert field reference
What the receiver reads from the alert body. Anything else is ignored.
action- Required:
buyorsell ticker- Required;
symbolis accepted too market_position- Required:
long,shortorflat, matching the action contracts- Whole number above 0, alias
qty; not needed when flat password- Optional; checked when the strategy has one
price,market_position_size- Optional
What the receiver refuses
Each check runs before an order is sent to Tradovate.
- Duplicate alerts
- Identical alerts inside 2 seconds are dropped, so a retrying alert doesn't double a position.
- Bursts
- More than 20 alerts a second on one token are rate limited.
- Daily cap
- Past 1,000 alerts in a day, the webhook answers 429.
- Powered off
- A strategy that's powered off answers 403 and places nothing.
- Stale signals
- A signal older than 30 seconds is refused instead of filled late.
- Adding to a position
- With Allow 2+ entries off, the default, a same-direction add is refused. Exits pass.
How webhook orders are sized
The contract count comes from the alert, unless the strategy has a fixed contract size, which overrides it. Each linked account then applies its own whole-number multiplier from 1 to 999, so one alert can trade 2 contracts on one account and 6 on another.
Traders and routingCommon questions
Short answers to what traders ask first. Anything else, the Help Center has it.
Does this work with a TradingView free plan?
Webhook alerts need a paid TradingView plan. Any paid tier with webhook notifications works.
Can I use my own Python script instead of TradingView?
Yes. The endpoint accepts a plain POST, so anything that can send an HTTP request can drive it. The payload fields are the same.
What happens if two alerts fire at once?
Identical alerts inside a short window are treated as one, so a retrying alert doesn't double a position. Different signals are each routed.
Do I need a VPS to keep it running?
No. The engine runs on Quanify's servers, so alerts route and fill with your machine off.
More on automation
Start on a simulated account. Go live when it earns it.
- Set up in minutes
- Nothing to download
- Paper account for testing
By providing your email, you agree to our Terms of Service and Privacy Policy.