# 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="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2F7uyq7M4FqLbGYnasVw4i%2Fcreditwebhook2.png?alt=media&#x26;token=57822e82-92fc-4330-aa13-13ae8080b1bf" 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="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FBgnV9lZWNm3lVAmxFNra%2Fimage.png?alt=media&#x26;token=9b3cc649-67d4-4f4f-b677-b939a91854b2" 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="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FVcOdOY0wjtKrJS9o0f4X%2Fimage.png?alt=media&#x26;token=2f08f616-e2a5-4149-980e-89839899f1c9" alt=""><figcaption></figcaption></figure>

***

Enter your own server webhook URL.

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FhQcFV38MwLGvnVIDOXlx%2Fimage.png?alt=media&#x26;token=0c7c0a46-fef2-4c8e-84c9-d3d450a0ff8d" alt=""><figcaption></figcaption></figure>

***

Choose 'Custom URL' to send alerts.

<figure><img src="https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FrbeAOZ6M1i8G88Q8ov3F%2Fimage.png?alt=media&#x26;token=ddee6e50-6551-4c94-8508-cb36b7bc2c84" alt=""><figcaption></figcaption></figure>

***

Click ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FFGde8EzWzJE4Aghk4lx8%2Fimage.png?alt=media\&token=8b02c884-6a76-46ca-8d88-a936b95c44bb) and ![](https://793384675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsQezxfp9oB9jrccv5OA4%2Fuploads%2FxCe7lr7vaybRdVBsV1Ep%2Fimage.png?alt=media\&token=a62f4583-97e9-40e9-8a3d-f17170f8eaf1) to start sending your Alerts!
