Webhooks / API Auto-trading

Web hooks in Blazing App allow you to set up automated trading using APIs.

Blazing App allows you to automate your trading through its webhook API integration. This feature enables you to connect your custom buy templates with external systems, providing seamless and automated trading. Below is a step-by-step guide to setting up and using Blazing Webhooks:

⚡Fastest API buyings are available only on Blazing App. Sign up now.

How to create a Webhook

1. Create a Template

To begin, you’ll need to create a template that will be used to automatically buy DRBT calls.

  1. Open the Blazing WebApp.

  2. On the left-hand menu, navigate to ‘Add New Template’.

  3. Select ‘Manual Buy’ as the type and enter all relevant settings.

  4. Name your template.

  5. Choose the wallets in your Blazing account that will be used for buying on the calls.

Adjust your safety settings as needed, then click ‘Add’ to save your template.

Your template is now saved and ready for use. You can find it in the left-hand menu for future edits if necessary.

2. Create a Webhook for the DRBT Calls

Next, we’ll create the webhook that will connect to DRBT bot:

  1. Go back to the Template Settings section and select ‘Create Webhook’.

  1. Name the webhook and select the template you just created.

  1. Do not close this window until the webhook setup is fully completed.

3. Connect the Webhook to the DRBT Bot

Now we’ll link the webhook to the DRBT bot:

  1. Copy the Webhook URL from the Blazing WebApp.

  1. Open the DRBT Filters Bot and select the query where you want to connect the webhook.

  2. Click ‘Webhook’ and paste the Webhook URL.

  1. Optionally, edit the query settings or rename the query for easier identification.

  1. In the DRBT bot, click ‘Auto Buy’ and select ‘Blazing’.

  1. Go back to the Blazing WebApp and copy your Access Token.

  1. Return to the DRBT bot and reply with the Access Token to finalize the connection.

Once everything is configured, you should see the Webhook URL listed and a green check next to the ‘Sniper Key’ in the DRBT bot.

5. Monitoring and Confirmation

Once a call comes through:

  • You’ll receive a notification from the Blazing Telegram Bot when a call is triggered and the buy is executed.

  • You can check the token that was bought on the WebApp.

Tracking Your Recent Buys

  • Navigate to the Profit & Loss (PnL) panel in the WebApp to track your recent buys.

  • You can also instantly share your PnL card before selling for easy updates.

Managing Webhooks

To manage or update your webhooks, go to the Settings tab in the Blazing WebApp. Here, you can select a different template to be used with the webhook if needed.

👉 Ready to trade? Launch Blazing WebApp now!

Interact with Your Webhook

To trigger the webhook, send a POST request to the Webhook URL with the Access Token included as a bearer token in the headers. The endpoint requires one parameter in the request body: the contract address of the token.

Here’s an example of the request structure using curl:

curl -X POST 'https://dev.blazingworld.me/api/v1/order/webhook//trigger/buy?b=1&l=en'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer '
-H 'Accept: application/json'
-d '{ "contract": "0x<TOKEN_ADDRESS>" }'

Key Notes

  • The contract parameter should contain the contract address of the token you want to interact with.

  • This example is provided for illustration purposes. Replace <ID> and <ACCESS TOKEN> with the specific values generated during webhook setup.

By following these steps, you can automate your trading strategies with Blazing App's webhooks and streamline your trading experience.

Last updated