Skip to content

Webhooks

In the cabinet: Bot settings → «Webhooks» block
Link: Open ↗

Webhooks let you drive an already-created Crazy bot’s deals from the outside — open, update, average and close positions on request. Handy for integrating with any third-party software, including strategies on TradingView.

The Webhooks block is at the bottom of the bot form and becomes active once the bot is saved. Each action has its own tab — Open / Update / Average / Close — each with its own URL and ready-made request body.

The request body is built with a visual constructor: set the parameters via the form and the ready JSON updates on the fly, just copy it. Ghost webhooks have the same constructor.

Base URL shape:

POST https://api3.cryptorg.net/crazy/hook/{accountId}:{token}
Content-Type: application/json

In every request the botId field is mandatory — it addresses the command to a specific bot. strategy and pairs set the deal’s direction and pairs.

A POST request with the full body: sections open (first order), dca (averaging), close (Take Profit) and stop (Stop-Loss).

Regular bot — botId field required, no action.

{
"botId": 180526,
"strategy": "short",
"pairs": ["SIRENUSDT"],
"open": {
"orderVolume": "15",
"leverage": 10,
"marginType": "cross",
"orderType": "Market",
"cycles": 33
},
"dca": {
"enabled": true,
"max": 10,
"active": 3,
"volume": "15",
"percent": "0.3",
"multiplierVolume": "1",
"multiplierPrice": "1"
},
"close": {
"enabled": true,
"event": "percentage",
"value": "0.3"
},
"stop": {
"enabled": true,
"event": "percentage",
"value": "5",
"delay": 3
}
}

The same body as Open, but without the open section — the deal is already open. Updates the averaging grid (dca), Take Profit (close) and Stop-Loss (stop) of the active deal.

Regular bot — botId field required, no action.

{
"botId": 180526,
"strategy": "short",
"pairs": ["SIRENUSDT"],
"dca": {
"enabled": true,
"max": 10,
"active": 3,
"volume": "15",
"percent": "0.3",
"multiplierVolume": "1",
"multiplierPrice": "1"
},
"close": {
"enabled": true,
"event": "percentage",
"value": "0.3"
},
"stop": {
"enabled": true,
"event": "percentage",
"value": "5",
"delay": 3
}
}

Force-averaging is a POST request to a dedicated URL with the /topup-deal suffix. The body carries botId, direction, pairs and amount (averaging volume in USDT):

POST https://api3.cryptorg.net/crazy/hook/{accountId}:{token}/topup-deal

Regular bot — botId field required, no action.

{
"botId": 180526,
"strategy": "short",
"pairs": ["SIRENUSDT"],
"amount": "15"
}

closePosition: true closes the position; false cancels the deal while leaving the position open.

Regular bot — botId field required, no action.

{
"botId": 180526,
"strategy": "short",
"pairs": ["SIRENUSDT"],
"closePosition": true
}
  • botId — bot ID, mandatory. Addresses the command to a specific bot.

  • strategy — direction: long or short.

  • pairs — list of trading pairs (["SIRENUSDT"]).

  • open section — opening parameters:

    • orderVolume — first order volume in USDT (required);
    • leverage — leverage;
    • marginType — margin type: cross or isolated;
    • orderType — order type: Market or Limit;
    • cycles — number of cycles.
  • dca section (averaging) — disabled via enabled: false:

    • max — max safety orders, active — active at once;
    • volume — safety order volume, percent — grid step in %;
    • multiplierVolume / multiplierPrice — martingale by volume / by step.
  • close section (Take Profit) — enabled, event and value. The take-profit type (event) can vary, and it determines the meaning of value:

    eventWhat value means
    percentageprofit percentage (%)
    pnlprofit in USDT
    delaytime (in seconds)
  • stop section (Stop-Loss) — enabled, event (percentage or pnl), value and delay — trigger delay in seconds.

  • amount — on averaging only: averaging volume in USDT.

  • closePosition — on close only: true closes the position, false cancels the deal without touching the position.

  1. In the bot form, open the needed webhook tab → copy the URL and request body.
  2. In TradingView: Create Alert → Notifications → enable Webhook URL → paste the URL.
  3. Paste the JSON body into the Message field.
  4. Verify it fires — the deal appears in the bot’s deal list.