Webhook: How to Send a Signal Based on an Alert

In today's fast-paced digital environment, automation plays a crucial role in ensuring efficiency and responsiveness. Webhooks are an essential tool in this automation process, enabling real-time communication between different systems based on specific triggers.

In this article, we'll explore how to set up an alert that sends a signal to an Altrady Signal Bot or an External URL, when it is triggered by user-defined conditions.

The following guide, should help assist you in understanding how to send webhook signals via alerts, to streamline your workflows and so that immediate action is taken when your alert conditions are met.

Contents



How to Create the Webhook Alert
Important Factors to Consider

How to Create the Webhook Alert



In the Trading Terminal, go to the Alerts widget and set your alert type, price (if relevant), trigger type, expiration date/time and sound for the alert, as you normally would for a regular alert.


To learn more about the different alert types and the basics of setting up an alert, please refer to the following article: Price Alerts and Trendline Alerts

Next, set the Webhook for where you would like the alert to be sent to. There are 2 options:

Altrady Signal Bot.
External URL.



Choose Altrady Signal Bot, if you would like that the triggered alert sends a signal to your bot. You will notice that the webhook URL has been set automatically.


If you require guidance on setting up a Signal Bot for use with Webhooks, please refer to the following article: Webhook: Setting up the Signal Bot

If you would like that a Signal is sent to an External URL, choose this from the dropdown menu. Following this, you will need to specify the external URL in the relevant field.



Following this, enter your webhook payload into the Note section.


You can use the webhook builder, to easily build your payload, which you can then paste into the note section. To learn more about how to use the webhook builder, please refer to the following article: Webhook Signals: Webhook Builder

Finally, click the Save button to post your alert.


You will then be able to see your alert, under My Alerts > Active, in your Trading Terminal. Once your alert conditions have been met, the payload in the note section will be sent.


Important Factors to Consider



A signal will be sent every time the alert is triggered. If the Trigger Type creates recurring alerts, this will be triggered every time the alert crosses UP or DOWN (alternating).
A signal can be sent using any of the 3 alert types (i.e. Time, Price and Trendline).
All actions for https://api.altrady.com/v2/signal_bot_positions are supported. These actions can also be viewed here: Webhook Signals: Open, Close, Increase or Reverse a Position
If using "test": true to send a test signal, please note that this currently ONLY supports the Open signal. If this is used with another signal type, a live order will be sent. More information about testing your signals can be viewed here: Webhook Signals: Testing and Errors
Please note, that support for the substitute values {{exchange}}, {{symbol}} and {{direction}} will be coming soon.


______________________________________________________________________________________________________________________________________________________



Webhook: Setting up the Signal Bot
Price Alerts and Trendline Alerts
Webhook Signals: Webhook Builder
Webhook Signals: Open, Close, Increase or Reverse a Position

Updated on: 09/01/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!