Welcome to our new support center!
We provide 24x7 support by human agents! So if our documentation can’t help you out, feel free to reach out and create a ticket!

Altrady Support Altrady Support

How to Connect TradingView Alerts to Altrady with Webhooks

New to webhooks? Start with How webhook signals work.

You can connect TradingView alerts to Altrady so that when your alert fires, Altrady opens or manages a position on your exchange automatically. This works through a bot that receives webhooks: TradingView sends a JSON message to Altrady’s webhook URL, and the bot acts on it.

Quick answer: how the connection works

  1. Your alert fires in TradingView.
  2. TradingView sends a JSON message to Altrady’s webhook URL.
  3. Your Altrady bot receives that message and opens or manages the position on your connected exchange.

The bot’s job is to receive webhook signals; TradingView is just one possible sender among others (indicators, strategies, or third-party signal apps).

To make this work you need:

  • A connected exchange API key
  • A TradingView Bot or a Webhook bot in Altrady
  • A TradingView plan that supports webhook alerts

Step 1: Create a bot in Altrady

  1. Open the Bots tab in the left-side menu, then click + Create on the Trading Bots page.
  2. In the Create a bot dialog, pick the bot that matches your alerts:

Create a bot dialog over the Trading Bots page, listing Grid bot (Spot only), DCA Bot, HODL Bot (Spot only), TradingView Bot, Signal bot and Webhook bot, each with a one-line description🔍 Click the image to see a larger version

You must create the bot first: its credentials and webhook tools only exist once the bot does. The general bot settings, such as exchange account, quote currency, allocation, entry and exit settings, work the same as on a signal bot. See How to set up and configure a signal bot for those; this article only covers the webhook-specific parts.

Step 2: Build the webhook message

On a Webhook bot, click Configure webhook on the Bot is ready screen once the bot starts. It opens the bot’s Webhook Builder tab, which you can also reach any time from the bot page. The builder generates a ready-to-use JSON payload, pre-filled with your bot’s api_key and api_secret, that you’ll paste into TradingView in the next step.

Webhook Builder tab with the API Key, Secret and Remember fields, Market, Webhook Action, Side, Market or Limit, Price and Order size on the left, and the Preview with the Webhook URL, Webhook Message, Copy URL and Copy Payload on the right🔍 Click the image to see a larger version

Choose a market from the dropdown list, and select the options on the left for the type of signal you want. Then use Copy URL and Copy Payload on the right.

On a TradingView Bot, the last step of the setup shows the API key, secret and a ready-made Webhook payload template with TradingView placeholders instead.

Step 3: Create the alert in TradingView

  1. In TradingView, create an alert on your indicator or strategy.
  2. Enable the Webhook URL option in the alert settings and paste in Altrady’s webhook URL.

TradingView’s Create Alert dialog with the Webhook URL option enabled, the Altrady webhook URL pasted in, and the JSON message box filled in below.🔍 Click the image to see a larger version

  1. Paste the JSON message into the alert’s message box.

This works for both indicators and strategies.

TradingView’s Create Alert dialog, with the Message field highlighted, where the Altrady JSON payload goes.🔍 Click the image to see a larger version

TradingView’s Edit message box with the Altrady webhook JSON pasted in (api_key, api_secret, exchange, symbol, action, side, and the exit plan).🔍 Click the image to see a larger version

The webhook message

The message is a JSON object. At a minimum it carries your bot’s api_key and api_secret, the market, and an action (which defaults to open). It can also carry the whole exit plan, take-profit, stop-loss, and DCA orders, so the position is managed from the moment it opens.

Specify the market one of two ways: a fixed exchange + symbol (in EXCHANGE_QUOTE_BASE form, for example BINA_USDT_BTC, see valid exchange and symbol values), or the TradingView placeholders tv_exchange + tv_ticker, which let one alert trade whatever chart it fires on. side (long or short) is required on trade actions.

A complete open signal with two take-profits and a stop loss:

{
  "api_key": "YOUR_API_KEY",
  "api_secret": "YOUR_API_SECRET",
  "action": "open",
  "side": "long",
  "tv_exchange": "{{exchange}}",
  "tv_ticker": "{{ticker}}",
  "order_type": "market",
  "take_profit": [
    { "price_percentage": 2, "position_percentage": 50 },
    { "price_percentage": 4, "position_percentage": 50 }
  ],
  "stop_loss": { "stop_percentage": 3 }
}

Beyond open, the same webhook also handles increase, reduce, close, and reverse (futures only). Starting or stopping the bot itself uses a separate endpoint: see Webhook signals: start or stop a signal bot.

For every action, field, default, and constraint, see the Webhook Signal Reference.

Which markets and exchanges are supported

TradingView signals can trigger orders on any spot or futures exchange you’ve connected to Altrady, including futures exchanges like BingX futures and exchanges such as Hyperliquid.

For DEX or other integrations, the same rule applies: only exchanges Altrady supports can receive webhook signals. If a third-party service generates and forwards your alerts, any subscription or setup on its side is handled by that service, not by Altrady.

Costs, plans, and known limitations

  • Altrady only charges its subscription fee (plus any optional add-ons). There’s no percentage-based commission on trades placed through a bot; your exchange’s own trading fees still apply.
  • Every plan supports sending webhook JSON signals to a bot, including during the 5-day trial.
  • Webhook signals don’t support Post-Only (ALO) orders or Time-in-Force settings, for either entries or take-profits. Bot positions are handled as Smart Positions instead.
  • The TradingView chart shown inside Altrady is tied to your Altrady account and runs separately from a paid tradingview.com account; you can’t link the two together.

Next steps

Still stuck?

If your webhook still isn’t connecting after following these steps, reach out through support chat in Altrady and we’ll take a look with you.

Was this article helpful?