# Custom URL

***

Message type:

`{` \
&#x20;  `"exchange": "Binance" (Binance, Bitget, Bybit and DYDX),`\
&#x20;  `"market": "BTCUSDT" (or eth or bnb),`\
&#x20;  `"t": integer timestamp in ms,`\
&#x20;  `"positionType": "open" or "close" or "decrease" or "increase",`\
&#x20;  `"positionId": a string that identify the position, usefull in case where the webhook url is used for multiple runbot bots,`\
&#x20;  `"orderType": "market",`\
&#x20;  `"tradeDirection": "long" or "short" (it refers the order direction, no position direction, so for example "short" if "positionType" = "decrease" when this is a "long" position,`\
&#x20;  `"price": "28911.90",`\
&#x20;  `"size": "0.015"`\
&#x20;  `"leverage": "0.86736" if the current account have a bank roll of 500 USDT with that size and price. It refers to the leverage of the order size relative to the current total bankroll (it is usefull if you want to send % of bankroll size instead of fixed absolute size)`\
`}`

To receive your Strategy Alerts directly on your own servers, go to <https://app.runbot.io/Bot/>

Click "+ Create a new credit webhook".&#x20;

<figure><img src="/files/oFHm1460tlTuTZFBFuOX" alt=""><figcaption></figcaption></figure>

***

On the Bot webhook configuration box, select 'Linked strategy' and pick the strategy you want to receive alerts from.

<figure><img src="/files/O4ALDX4A70yIU1MdJr1N" alt=""><figcaption></figcaption></figure>

***

Enter the exact amount of capital you wish to allocate to your trading strategy. The size of your orders will be based on this reference, which can be a lower or a higher amount, depending on the leverage of your strategy.

<figure><img src="/files/rSjWlZCtX4WvlcKrEy3e" alt=""><figcaption></figcaption></figure>

***

Enter your own server webhook URL.

<figure><img src="/files/cn97XPgOaSfdiaEcmhBS" alt=""><figcaption></figcaption></figure>

***

Choose 'Custom URL' to send alerts.

<figure><img src="/files/9aJ2Q8PT1Q8QR1YHv9wd" alt=""><figcaption></figcaption></figure>

***

Click ![](/files/e5issY8AL1GwdCQ0lScm) and ![](/files/rRgI4cllCUPOvyNvew2N) to start sending your Alerts!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runbot.io/webhooks-trading-bots/custom-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
