Does TradingView have an API?
Short answer: not one you can use to place a trade. TradingView doesn't publish a public API for order execution or account access, and there's no dev portal where a retail trader signs up for one. What TradingView does have is a webhook alert feature, and that's the piece most people mean when they search this. We'll cover both, plainly, and then get to the part that's actually about us: no, Autoview is not TradingView's API. We're not affiliated with TradingView, and nobody there endorsed this page. What we are is the thing on the other end of that webhook, turning the alert it sends into a real order at your broker or exchange.
What TradingView actually offers
Three things, and none of them is "an API you can use to trade":
- A Charting Library. A free, self-hosted JavaScript library for embedding TradingView-style charts in your own site or app. You supply the price data; it draws the chart.
- A Datafeed API spec. A specification for feeding your own data into that Charting Library. It's a contract for how to hand TradingView's chart your bars, not a way to pull TradingView's own data out.
- A Broker API. This is the one that sounds like what most searchers want, and it's the one that isn't open to you. It's restricted to brokerages that apply to and pass TradingView's own broker-integration program and sign a commercial agreement, so their order routing shows up as one of the connected brokers inside TradingView's own interface. It's built for a licensed brokerage's engineering team, not for a trader wiring up their own account.
None of those three is a public, sign-up-and-go API for placing your own orders. If you were hoping for something like a typical exchange API, an endpoint you hit with your own key to buy and sell, TradingView doesn't have the retail version of that.
| Surface | Audience | Direction | Authentication | Who executes the trade |
|---|---|---|---|---|
| Webhook alerts | Any TradingView user | Outbound only: TradingView POSTs to your URL when an alert fires | Requires 2FA enabled on your TradingView account; no API key issued by TradingView | Whatever app you point the webhook at (Autoview, in this site's case) -- never TradingView itself |
| Broker API | Licensed brokerages only, by commercial agreement | Two-way: the brokerage's own systems integrate with TradingView's order interface | Brokerage-level partnership credentials, not a retail API key | The partnered brokerage's own systems |
| Charting Library / Datafeed API | Developers embedding TradingView-style charts | Inbound only: you feed your own price data into TradingView's chart widget | None trade-related; this is a charting spec, not an order pathway | N/A, no trading involved |
Official references for each: TradingView's own webhook alerts documentation, its Broker Integration program page for the partnership-only Broker API, and its Charting Library documentation for the Datafeed spec.
The feature TradingView actually calls a webhook, not an API
What TradingView does give retail traders is webhook alerts, and it's worth being precise about what that is because TradingView itself doesn't call it an API. Set one up on an alert, and when the alert fires, TradingView sends an HTTP POST carrying your alert's message to a URL you choose. TradingView's own support documentation requires two-factor authentication to be enabled on your account before you can use webhook alerts, and describes the feature as a notification mechanism, not an API.
That's the real mechanism behind almost everything people mean by "connect TradingView to my broker" or "automate my TradingView alerts." An alert firing on its own does nothing outside TradingView. Something has to sit on the receiving end of that webhook POST, read the message, and turn it into an actual order somewhere else. TradingView's own product stops at sending the POST.
Where Autoview actually fits
This is the honest part, said plainly: Autoview is a third-party bridge, not TradingView's API. We didn't build it, we don't run it, and we aren't affiliated with, endorsed by, or partnered with TradingView. If you came here looking for an official TradingView product, this isn't it.
What Autoview is: the receiving end of that webhook. Autoview runs its own endpoint (POST /hook/:id/) that reads the alert TradingView's webhook POSTs to it and places the matching order on your connected broker or exchange. Your webhook URL looks like https://api.autoview.com/hook/<identifier>/, the same shape covered in the webhook key guide. Point a TradingView alert's webhook field at that URL, write the order as the alert's message, and Autoview does the rest: reads the message, checks it against your connected account, and sends the order to your broker or exchange.
So if what you actually wanted from "a TradingView API" was a way to have a TradingView alert programmatically place a real trade, that's exactly what this does, just not built or run by TradingView. The automate TradingView alerts guide is the full step-by-step, end to end.
One more honest note: the webhook doesn't check who sent it. TradingView is the common sender, but Autoview reads a POST from TrendSpider, a Python script, or your own server the exact same way. It isn't a TradingView-exclusive pipe with a TradingView label on it; TradingView just happens to be where most people's alerts already live.
If what you meant was an AI agent, not a webhook
There's a second, separate way to place a trade through Autoview that isn't the webhook at all: an MCP server an AI agent can call directly, on your instruction, whether that instruction came from a TradingView chart you were both looking at or somewhere else entirely. It doesn't read TradingView alerts either; it's a different surface for a different question. The AI agent guide covers that path, and what's live today versus still paper-only.
The honest bottom line
TradingView doesn't offer a public trading API to retail traders, full stop. It offers webhook alerts, which it doesn't call an API either. Autoview isn't TradingView's API, isn't built by TradingView, and isn't an official TradingView product of any kind. What we do is sit on the other end of the webhook TradingView already gives you, and turn the alert it sends into a real order. If that's the "TradingView API" you were actually looking for, the setup is one guide away.