Direct Connection with Slack Using Webhook

This document explains how to connect the TrendSpider Alerts to an external platform: Slack via webhook for the purpose of receiving direct alerts and notifications into Slack channels.

Generate Webhook URL

Generate and copy the Webhook URL from your Slack Account Settings by following the steps as outlined in this documentation- Incoming webhooks for Slack

A sample Incoming Webhook URL looks like that:

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 Slack incoming Webhook URL. For more information, please refer to the documentation- Webhooks


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 Slack.

Example JSON: { "text": "It's time to buy the dip." }

Trading Bot

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

Example JSON Webhook Body for Entry: {"text":"It's time to buy the dip at %bot_symbol%"}. Example JSON for an Exit would be {"text":"It's time to sell %bot_symbol% now"}.

Please refer to the documentation to learn more about fancy options of an incoming webhook body for Slack- Slack Webhook.

TrendSpider Trading Bot Alerts

Related Slack Documentation

Use your Incoming Webhook URL to post a message
Advanced Message Formatting
Incoming Webhook Handline Error
Dec 18, 2023

Contact Us

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