> For the complete documentation index, see [llms.txt](https://docs.sigrex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sigrex.io/cex-signal-bot/creating-a-cex-signal-bot.md).

# Creating a CEX Signal Bot

A **CEX Signal Bot** allows users to automatically execute trades on a centralized exchange by listening to a specific webhook (or signal email address). When a valid signal payload is received, the bot triggers a trade using the connected API.

***

## 🛠️ Bot Setup Fields

Here’s a breakdown of the required and optional fields when creating a CEX signal bot:

* **Name (Optional):**\
  You can give your bot a custom name. If left empty, the bot will automatically be named after the selected trading symbol (e.g., "BTCUSDT").
* **Webhook:**\
  Select an existing webhook that the bot should listen to. This webhook will receive trading signals either via HTTP POST or email (`webhook-hash@sigrex.io`).
* **API Connection:**\
  Choose one of your previously added exchange API keys. This determines which centralized exchange the bot will execute trades on.
* **Symbol:**\
  Enter the trading symbol (e.g., `BTCUSDT`). Make sure the symbol format matches the one used by the selected exchange (e.g., some use `BTC_USDT` while others use `BTCUSDT`).
* **Pair Base / Pair Quote:**\
  These fields auto-fill based on the symbol. For example, `BTCUSDT` will have:
  * Base: BTC
  * Quote: USDT
* **Amount:**\
  Set the amount for each trade:
  * You can choose the amount in the quote currency (e.g., USDT) or switch to the base currency (e.g., BTC).
  * The amount must be equal to or greater than the **minimum notional value** required by the exchange for that trading pair.

> ⚠️ **Important:** If the amount is too small, the exchange may reject the order. Always verify the trading rules of your selected pair on the exchange.

***

## ✅ After Creation

Once the bot is created, it will continuously monitor the selected webhook. When a valid signal payload is received, the bot will:

1. Validate the payload (including any required key).
2. Place the trade on the selected exchange using the parameters in the payload.
3. Follow any optional parameters like dilution, etc.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.sigrex.io/cex-signal-bot/creating-a-cex-signal-bot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
