Utiliser un webhook avec OctoBot
La traduction française de cette page est en cours.
There are many ways to wake your OctoBot up and make it do something, one of them is using a webhook. With a webhook, you can automatically send messages to your OctoBot from any website supporting this system. TradingView is one of them.
In order to be able to receive TradingView webhook’s message, you need to make your OctoBot reachable from TradingView. For this, there are 3 options:
- Use the Premium OctoBot Extension and simply connect your OctoBot through the OctoBot cloud secure server.
- Use Ngrok to act as a secure intermediary between the internet and your OctoBot.
- Or setup your own public IP and port configuration
Configurer le webhook de votre OctoBot
-
In your OctoBot configuration, from the
Accounts
tab, inInterfaces
, add the webhook service. -
Set up your webhook configuration using one of the following options:
-
Option 1: Using Premium OctoBot Extension: just select the
Enable-Octobot-Webhook
-
Option 2: Using Ngrok :
- Select
Enable-Ngrok
- Create an account on ngrok
- Copy your Ngrok token from https://dashboard.ngrok.com/get-started/your-authtoken
- Enter your Ngrok token into your OctoBot’s webhook service configuration.
- Select
-
Option 3: Manual configration: if you are familiar with webhook setups and your OctoBot is exposed to the Internet, you can disable Octobot-Webhook and Ngrok and configure the listening port and IP for the webhook yourself.
Note: With this manual configuration, when using docker, you also need to add-p 9000:9000
afterdocker run
.
-
-
Activate a tentacle using a webhook service (like the TradingView signals trading mode).
-
Restart your OctoBot.
-
The webhook address will be displayed on your OctoBot configuration, on to the TradingView inteface and printed in your logs.
Your Webhook URL is missing?
For your webhook URL to be displayed, a TradingView-related profile has to be active. If you don’t see the URL in your TradingView configuration, select a TradingView profile in your profile configuation and restart your OctoBot.
Follow this guide to know more on how to send TradingView signals to your OctoBot.
Examples de configuration
Option de configuration 1: Utiliser l’extension premium OctoBot
TradingView and Webhook configuration in the Accounts tab
The Webhook URL is also printed in logs
Option de configuration 1: Utiliser Ngrok
TradingView and Webhook configuration in the Accounts tab
The Webhook URL is also printed in logs
Activate a tentacle using a webhook service (like the TradingView signals trading mode)
À propos de ngrok.com
You can use Ngrok with a free account, the only drawback of having a free version is that your webhook address will change at every OctoBot restart, you will have to update it on your message sender TradingView.
To avoid having to re-enter your IP each time, you can either:
- Use the Premium OctoBot Extension: in this case you only pay once and always have your OctoBot secure webhook ready to receive your TradingView alerts.
- Pay a Ngrok monthly subscription