Direct Connection with Discord Using Webhook

This document explains how to connect the TrendSpider Alerts to an external platform- Discord via webhook. This will allow sending alert messages from TrendSpider to Discord channels.

Step 1: Navigate to your server, click on the server name from the top, and select Server Settings from the dropdown list.

Discord Server Settings

Step 2: Select Integrations from the left sidebar and click on the Create Webhooks button.

Select Integrations from the left sidebar

Step 3: You will be provided with the options to configure the following:

  • Avatar: Upload an image or GIF of your choice as an Avatar.
  • Name: Provide a name to your Webhook to distinguish it from the other Webhooks
  • Channel: Select the desired channel to which the Webhook will post the alert messages

Configure Avatar, Name, Channel

Step 4: Click on the Copy Webhook URL button.

Copy Webhook URL

Sample Webhook URL:
Formatting Message (Payload):

It is important to format the message based on the action you would like the Webhook to execute. For example, if you would like the Webhook to post the message, then rather than using a normal alert message like “ETHGBP” Greater Than 3000”, you will need to use the “content” key with a string value having the alert message. 

Example: {"content":"ETHGBP Greater Than 3000"}

For more information, please refer to the documentation- Webhook Resource

Note: Incoming Webhooks can post messages to channels with a generated token.
Example Incoming Webhook Format (Payload):
  "name": "test webhook",
  "type": 1,
  "channel_id": "199737254929760256",
  "token": "3d89bb7572e0fb30d8128367b3b1b44fecd1726de135cbe28a41f8b2f777c372ba2939e72279b94526ff5d1bd4358d65cf11",
  "avatar": null,
  "guild_id": "199737254929760256",
  "id": "223704706495545344",
  "application_id": null,
  "user": {
    "username": "test",
    "discriminator": "7479",
    "id": "190320984123768832",
    "avatar": "b004ec1740a63ca06ae2e14c5cee11f3",
    "public_flags": 131328

For more information, please refer to the documentation- JSON/Form Params

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 Discord 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 in the format acceptable to Discord.

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 Discord, then you will need to enter the Discord Incoming Webhook URL and define the Webhook Body in the HTTP POST Request Payload (JSON) format.

TrendSpider Trading Bot Alerts

Related Discord Documentation

Create Webhook
Get Webhook
Get Webhook with Token
Get Webhook Message
Jun 22, 2022

Contact Us

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