Articles on: Signals and Automation

Webhook Signals: Start or Stop a Signal Bot

A webhook signal can be used to start a bot that is stopped, or to stop a Signal Bot that is running.
Only one Signal Bot can be stopped or started per signal.

Start and Stop bot Signals



General format of a signal to start or stop a Signal Bot

{
 "api_key": "YOUR_ALTRADY_API_KEY",
 "api_secret": "YOUR_ALTRADY_API_SECRET",
 "action": "start_bot | start_and_open | stop_bot | stop_and_close",
}


API key and Secret


These must be the Altrady API key and secret for the Signal Bot.

Valid actions: choose one


"action": "start_bot"
Bot status will change to Running.
The bot will start accepting signals.

"action": "start_and_open"
Status will be changed to Running.
A new position will be opened using the settings in the signal.
All settings used for the Open Signal can be included in this signal. "exchange": and "symbol": must be included.
The bot will continue to accept signals.

"action": "stop_bot"
Status will be changed to Stopped.
The Signal Bot will not accept any further signals of any type, other than "action": "start_bot" or "action": "start_and_open"
Any open positions will remain open and continue to be managed.

"action": "stop_and_close"
Status will be changed to Stopped.
The Signal Bot will not accept any further signals of any type, other than "action": "start_bot" or "action": "start_and_open"
All open positions will be closed at current market value.


Webhook and Trading View SIgnals: Overview
Webhook: Setting up the Signal Bot
Webhook Signals: Open, Close, Increase or Reverse a Position
[[Valid values for Exchange and Symbol](/en/article/webhook-valid-values-for-exchange-and-symbol-1xrzfap/)](/en/article/valid-values-for-exchange-and-symbol-1xrzfap/)
Webhook Signals: Trading View Setup
- Webhook Signals: Testing and Errors

Updated on: 16/04/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!