Creating a Webhook

Looking to automate your trading? Webhooks are key to success! Learn how to easily create and integrate a webhook with an exchange via the Psyll platform and start trading automatically.

Webhook

Automate trades and trigger actions by connecting external alerts through fully customizable webhooks.

Webhooks are one of the most important tools for automating and integrating your own bots and applications with the Psyll platform and your chosen exchange. They allow you to send commands, orders, and data in real-time, which significantly streamlines trade management and increases its effectiveness.

In this chapter, we describe in detail how to create a new webhook step by step, what information is needed, and how to configure it securely and effectively. This guide will help you take full advantage of automation capabilities and start trading based on your own strategies.

To create a webhook, start by logging into your account on the Psyll platform. Then, from the main menu, go to the Trading account section and select the My webhooks tab. There, you will find a list of all your active and previously created webhooks.

To begin creating a new webhook, click on the Create New Webhook button. A form will appear, enabling you to define all the required webhook parameters.

Step 1: Naming the Webhook

The first and very important step is to give the webhook a name under which it will be visible on your account. The name should meet a few simple rules:

  • It can only contain letters (both lowercase and uppercase), numbers, spaces, and hyphens.
  • Its length should be between 3 and 24 characters.
  • It's a good idea for the name to clearly state the webhook's purpose, which will make it easier for you to identify it on the list (e.g., "BinanceScalping ETH", "Spot Trading BTC-USDT", "DCA Alerts").

A well-chosen example name will allow you to quickly find the webhook among many others and understand what it is for.

Step 2: Choosing the Exchange

After naming it, it's time to choose the exchange with which the webhook should connect. On the screen, you will see a list of available exchanges, represented by their logo and name. Simply click on the logo of the chosen exchange to select it.

Step 3: Entering API Keys

The webhook needs access to your exchange account to perform operations such as placing orders, retrieving balance, or other automated actions. Therefore, the next step is to provide API keys that will allow for this communication.

In the form, you will see fields to enter:

  • Public key - this is an identifier that allows your account to be recognized.
  • Private/Secret key - this is a security key that allows the system to perform operations on your account.

You can generate these keys in the administration panel of your exchange. Usually, all you need to do is go to the API settings and create a new key with the appropriate permissions.

Important: Grant the API keys only the permissions that are necessary for the webhook to function. Do not share your keys with anyone except trusted applications and remember that the security of your funds depends on responsible management of these keys.

To learn how to generate API keys for each of the supported exchanges, go to the "Exchanges" documentation.

Step 4: Finalization and Webhook Creation

After filling in all the required fields - the name, the choice of exchange, and the API keys - you can proceed to create the webhook. Click the "Create webhook" button to save the configuration.

If all the data has been entered correctly, you will see a confirmation that the webhook has been created and you will be redirected to the webhook management panel. Otherwise, the system will inform you what needs to be corrected (e.g., incorrect name format, invalid API keys, or lack of exchange authorization).

What's next?

After creating the webhook, you will find it on the list in the "My webhooks" tab. There you will have access to:

  • The webhook's URL address, which you can use in your applications and bots to send orders.
  • The option to edit or delete the webhook if needed.
  • Additional settings that will allow you to adjust the webhook's operation to your needs.

The webhook is now ready to use - you can start automating your actions, sending signals to the exchange, reacting to market changes, and implementing strategies without manually entering commands.

Summary

Creating a webhook in Psyll is a process designed for maximum user convenience and security. All you need to do is:

  • Give it a clear and appropriate name.
  • Choose the correct exchange you want to connect to.
  • Enter the API keys generated on the exchange.
  • Confirm and save the webhook.

This gives you a powerful tool for trading automation, which allows you to save time and increase the effectiveness of your actions.

If you need it, in our documentation you will also find sample code and tips on how to use webhooks in popular programming languages such as Bash, JavaScript, Python, or PHP. All of this is so you can quickly and easily start creating your own advanced trading systems.