Welcome to our new support center! Some articles may still be missing; they will be added shortly. For the old support documentation go to https://support.altrady.com. If you have questions, open a new ticket here. New tickets on support.altrady.com won’t be answered; existing tickets will be finalised there.

Altrady Support Altrady Support

Webhook signals: start or stop a signal bot

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

Send these bot-action signals to https://api.altrady.com/v2/signal_bot/start_stop — a different endpoint from the position signals, which use https://api.altrady.com/v2/signal_bot_positions.

API key and secret

The api_key and api_secret must be the Altrady API key and secret for that signal bot.

General format

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

Choose exactly one action.

The four actions

start_bot

The bot status changes to Running. The bot starts accepting signals.

start_and_open

The status changes to Running and a new position is opened using the settings in the signal. All settings used for an open signal can be included, and exchange and symbol (or tv_exchange and tv_ticker) plus side must be included. The bot continues to accept signals.

stop_bot

The status changes to Stopped. The signal bot only accepts the following signal actions: start_bot, start_and_open, close or increase. Any open positions remain open and continue to be managed.

stop_and_close

The status changes to Stopped and all open positions are closed at current market value. After this, the signal bot only accepts start_bot or start_and_open.

A bare start or stop signal

To simply start or stop the bot, send only the credentials and the action:

{
 "api_key": "YOUR_ALTRADY_API_KEY",
 "api_secret": "YOUR_ALTRADY_API_SECRET",
 "action": "stop_bot"
}

Was this article helpful?