Articles on: Strategies
This article is also available in:

How to configure an incoming webhook ? (TradingView, ...)

This article is about incoming webhooks that you can manage here: botcrypto.io/webhooks.

What are incoming webhooks?



These incoming webhooks are use to build trading strategies on botcrypto that must wait a signal from an external service, like TradingView.

This signal is a POST request to webhook URL that trigger the webhook state in your strategy.

TradingView example



Create an incoming webhook


Go to the incoming webhooks page botcrypto.io/webhooks and click on "New incoming webhook".

A new webhook will appear with an URL that look like this:

https://api.botcrypto.io/v1/webhooks/in/d7f234165bf9a2e69686d7ba2f461fb3

You can create several incoming webhooks according to your subscription but you can re-use the same webhook in many strategies anyway. Use many webhooks allow you to get many alerts in input.

Create the strategy


In the strategy creator botcrypto.io/creator/new, us the webhook state.

In the state configuration, select the webhook identifier previously created: d7f234165bf9a2e69686d7ba2f461fb3

By default, the condition will be fulfilled as soon as the webhook has been called at least once during the last 300 seconds (5 minutes) of the bot execution. As a reminder, the bot is executed at each candle closing. If you want the bot to check every day if there was a webhook call in the last 24 hours, set the time unit of the strategy to 1d and the parameter Seconds to 86400 (i.e. the number of seconds in one day).

Strategy webhook → buy → end

Give a name to the strategy and save it.

You can import this strategy directly from the store : Webhook signal from TradingView.

You can now create and start a bot using this strategy. It won't do anything until the webhook is triggered.

Create a Trading View alert


Go to a graph on tradingview.com and click on "Alerts". The form to create an alert open, check "Webhook URL" and past the full webhook URL previsouly created on botcrypto.

Create an alert on Trading View

Et voilà! When tradingview.com will trigger the alert, once the bot will run it will pass the webhook state and will go further in the strategy 🎉

You do not have to keep your browser open. So you can stop your computer and go for a cocktail, Bocrypto & Trading View are taking care of your trading🍹

TradingView example in video





Incoming Webhook VS Outgoing Webhook



Botcrypto also offers you to be notified by webhook. The notifications you receive on botcrypto, when a bot takes a new position or a trade is completed, can also be sent to you by webhook. It is then an outgoing webhook.

For more information, see the dedicated article: https://botcrypto.crisp.help/en/article/how-to-enable-webhook-notifications-8w0je2/

It is possible to use the URL of an incoming webhook in an outgoing webhook and transmit a signal between strategies.

Updated on: 15/12/2021