Webhook signals

In order to use the Signal Bot with custom signals, you will have to create a new Signal Bot and configure it with Webhook support.
An existing Signal bot cannot be Duplicated for your Webhook bot.

Please check the video about the Signal Bot Webhook setup (0:55 to 1:27).
The rest of the Signal Bot set up for webhooks is the same as for Signals.



For people with a developer background, you can reference the following API documentation for the Webhook.

https://api.altrady.com/v2/doc

Note. Short or Sell signals aren't available at the moment.
TP/s for your Long signals can either be:
included in your entry signal
included your Bot Settings, or
added manually to your positions once they have opened.

Accepted values for exchange

Bittrex or BTRX
Binance or BINA
HitBTC or HITB
Poloniex or PLNX
Kucoin or KUCN
Huobi or HUBI
Kraken or KRKN
Coinbase Pro or GDAX
OKEx or OKEX
Binance US or BIUS
FTX
FTX US or FTXUS
ByBit or BYBI
Bitvavo or BVVO
Gate.io or GATE

Accepted value for symbol

You can use the symbol format as used by the exchange API (e.g. BTCUSDT, BTC-USDT depending on the exchange)
OR
You can use the symbol in the format of <Exchange Code>_<Quote>_<Base> e.g. BINA_USDT_BTC

Trading View setup

If you want to use Trading View for sending signals, you have 2 options.
You can set up an Alert or you can use a custom pine script to create a signal.

Alert

For the webhook URL you use
https://api.altrady.com/v2/signal_bot_positions

And for testing the message you use

{
  "test": true,
  "api_key": "<api_key>",
  "api_secret": "<secret>",
  "signal_id": "{{time}}",
  "side": "long",
  "exchange": "binance",
  "symbol": "BINA_USDT_BTC",
  "signal_price": "{{close}}"
}


With "test": true, your webhook signal in combination with your bot, should create Pending orders that you can see on the chart and in My Orders.
Once you are ready to send live signals, use:
"test": false,

Setup alert

Please change the API Key and Secret and also make sure you set the correct exchange and symbol
Please ensure the Signal ID is unique per bot. Using the {{ time }} will ensure a unique signal ID each second

Your payload can be checked for syntax here.

Note. For testing your syntax here, for the signal_price you will need to replace {{ close }} with a number.

Pine Script

To simply set up the creation of an order by price crossing or by crossing a trend line as above does not require any programming skills, but if you need to connect an indicator or a strategy, you will need basic knowledge of creating a signal in Pine Script. There is a lot of information on the web about how to generate a signal in Pine.

For the webhook URL you use
https://api.altrady.com/v2/signal_bot_positions

indicator("Altrady webhook signal")

test = input.bool(true, "Test signal")
api_key = input.string("", "Api key")
secret = input.string("", "Sectet")
signal_name = input.string("", "Signal name")
side = input.string("", "Side")
exchange = input.string("", "Exchange name")
symbol = input.string("", "Symbol")
signal_price = close

alert('{"test": '+ str.tostring(test) +', "api_key": "'+api_key+'","api_secret": "'+secret+'","signal_id": "'+ signal_name + str.tostring(time)+'","side": "'+ side +'","exchange": "'+ exchange +'", "symbol": "'+ symbol +'","signal_price": "' + str.tostring(signal_price) +'"}')


With "test": true, your webhook signal in combination with your bot, should create Pending orders that you can see on the chart and in My Orders.
Once you are ready to send live signals, change the first line to:
test = input.bool(false, "Test signal")

Pine script

Please change the API Key and Secret and also make sure you set the correct exchange and symbol
Please ensure the Signal ID is unique per bot. Using the {{ time }} will ensure a unique signal ID each second
Was this article helpful?
Cancel
Thank you!