Direct Connection with Alertatron Using Webhook

This document explains how to connect the TrendSpider Alerts to an external platform- Alertatron via webhook. This will allow sending alert messages from TrendSpider to Alertatron and even execute the automated trading.

Step 1: Click on your profile from the top-right corner and select Incoming Alerts from the dropdown.

select Incoming Alerts from the dropdown.

Step 2: You will be navigated to the new webpage providing you with your unique incoming webhook address.

webpage providing you with your unique incoming webhook address

Sample Incoming Webhook URL:

https://alertatron.com/webhook/incoming/1c221ecc-c7ac-4b17-b599-8c1a03d2ed54

The alert configured in TrendSpider will be channeled to Alertatron and can be further sent to other platforms like Telegram or Discord. By default, all the incoming alerts are redirected to the Alertatron’s inbox but you can create specific groups/folders/labels for categorizing and forwarding the alerts.

For example, a Telegram group can be created, and then you can decide to filter out some specific messages from your inbox to send them to the Telegram.

Forward Alerts to Telegram

You can complete Telegram integration with Alertatron to allow instant forwarding of the alerts to a specific Telegram channel, group, or chat.

Step 1: Navigate to your inbox, click on the ‘Add’ button from the top-right corner of your interface, and you will be redirected to the list of all the supported integrations.

Webpage providing the list of all the supported integrations

Step 2: Click on the Telegram logo to navigate to the Telegram Integration Settings.

Telegram Integration Settings

Step 3: Follow the instructions in the Help Guide to link your Telegram account to a private chat or group or channel.

Follow the instructions in the Help Guide

After connecting the Alertatron and Telegram, you can add the tag #tg or #telegram to the alerts you would like to forward to the Telegram account.

Forward Alerts to Discord

You can complete Discord integration with Alertatron to allow instant forwarding of the alerts to a specific Discord channel.

Step 1: Navigate to your inbox, click on the ‘Add’ button from the top-right corner of your interface, and you will be redirected to the list of all the supported integrations.

Webpage providing the list of all the supported integrations.

Step 2: Click on the Discord logo to navigate to the Discord Integration Settings.

Discord Integration Settings

Step 3: Generate a Webhook URL for a particular Discord Channel and paste it into the provided field. Please refer to the guide-Intro to Webhooksto know more about generating a Webhook URL from Discord.

Paste the Webhook URL for a particular Discord Channel

Step 4: Click on the Save Discord Webhook button. After connecting the Alertatron and Discord, you can add the tag  #Discord to the alerts you would like to forward to the Discord.



Click on the Save Discord Webhook button

Forward Alerts to Automated Trading

You can complete Trading integration with Alertatron to allow the execution of the orders (found in TrendSpider alerts) on popular cryptocurrency exchanges like Bybit, FTX, BitMEX, etc.

Follow the steps below to navigate to the integration settings.

Step 1: Navigate to your inbox, click on the ‘Add’ button from the top-right corner of your interface, and you will be redirected to the list of all the supported integrations.

webpage providing the list of all the supported integrations

Step 2: Click on Automated Trading to navigate to the integration settings.

Click on Automated Trading

Step 3: Read the trading terms and conditions, tick the checkbox to approve, and click on the  “I Agree” button.

Read the trading terms and conditions

Based on the cryptocurrency exchange you use, you will need to build its connection with the Alertatron via API. The documentation listed in the table below provides the steps to generate the API Keys for the specific cryptocurrency exchange and add those keys to Alertatron.

API Keys: Bybit https://alertatron.com/docs/automated-trading/api-keys-bybit
API Keys: Deribit Futures https://alertatron.com/docs/automated-trading/api-keys-deribit-futures
API Keys: FTX https://alertatron.com/docs/automated-trading/api-keys-ftx
API Keys: FTX US https://alertatron.com/docs/automated-trading/api-keys-ftx-us
API Keys: Binance Futures https://alertatron.com/docs/automated-trading/api-keys-binance-futures
API Keys: Bitfinex Spot and Margin https://alertatron.com/docs/automated-trading/api-keys-bitfinex-spot-and-margin
API Keys: BitMEX https://alertatron.com/docs/automated-trading/api-keys-bitmex

After connecting your cryptocurrency exchange account to Alertatron, the three-stage flow will need to take the effect:

Stage I: TrendSpider triggers an alert or event and sends it to Alertatron via webhook (Please refer to the first section of this document)

Stage II: Alertatron captures the information and interprets the action to be performed based on the command values you have entered in the Webhook body.

You can add the special commands in the Webhook Body (alert message) that Alertatron’s automated trading bot can interpret.

Example of a special command:

MyKeys(XBTUSD) { market(side=buy, amount=100); }

#bot

Please refer to the documentation- Basic Concepts to understand how to read the aforesaid example. This documentation also sheds light on command values, chaining commands, and max execution time.

Stage III: The special command specified in the Webhook body is executed by the Alertatron’s trading bot on your linked cryptocurrency exchange account

TrendSpider Dynamic and Multi-Factor Alerts

You can configure Webhook alert settings in TrendSpider to send an HTTP POST request to a URL for receiving the notifications. Simply enter the incoming Webhook URL where POST requests should be sent. In this case, you can enter the Alertatron incoming Webhook URL.

For more information, please refer to the documentation- Webhooks

TrendSpider Dynamic and Multi-Factor Alerts

TIP: “You can add the Webhook message in the Your Note field while setting up the Dynamic Alerts or Multi-Factor Alerts.”

TrendSpider Trading Bot Alerts

Selecting Webhook as the notification mode for receiving the alerts whenever the trading bot enters or exits a position will require you to define the Webhook Incoming URL and Webhook Body.

Enabling this will instruct TrendSpider to send HTTP POST requests to the webhook you provide. For example, if you want TrendSpider to send the alerts to Alertatron, then you will need to enter the Alertatron Incoming Webhook URL and define the Webhook Body in the acceptable format.

TrendSpider Trading Bot Alerts

Related Alertatron Documentation

DOCUMENT REFERENCE
Sending alerts to Telegram https://alertatron.com/docs/sending-alerts-to-telegram
Getting started with Alertatron Groups https://alertatron.com/docs/getting-started-with-alertatron-groups
Basic Concepts https://alertatron.com/docs/automated-trading/basic-concepts
Automated Trading Common Examples https://alertatron.com/docs/automated-trading/common-examples
Jun 22, 2022

Contact Us

Not finding what you're looking for? Contact Us Directly