Webhook Signals: Start or Stop a Webhook 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.
These must be the Altrady API key and secret for the Signal Bot.
"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"
Bot status will be changed to Stopped.
The Signal Bot will only accept the following signal actions: "start_bot", "start_and_open", "close" or "increase".
Any open positions will remain open and continue to be managed.
"action": "stop_and_close"
Status will be changed to Stopped.
All open positions will be closed at current market value.
After this, the Signal Bot will only accept the following signal actions: "start_bot" or "start_and_open"
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]
Webhook Signals: Trading View Setup
Webhook Signals: Testing and Errors
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"
Bot status will be changed to Stopped.
The Signal Bot will only accept the following signal actions: "start_bot", "start_and_open", "close" or "increase".
Any open positions will remain open and continue to be managed.
"action": "stop_and_close"
Status will be changed to Stopped.
All open positions will be closed at current market value.
After this, the Signal Bot will only accept the following signal actions: "start_bot" or "start_and_open"
Related Articles
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]
Webhook Signals: Trading View Setup
Webhook Signals: Testing and Errors
Updated on: 31/08/2024
Thank you!