> For the complete documentation index, see [llms.txt](https://hdsd2.entrade.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hdsd2.entrade.com.vn/entrade-api/tai-lieu-api-cu/5.-tu-dong-hoa-avatar-bot/5.2.-kich-hoat-bot-dua-tren-chien-thuat-da-tao.md).

# 5.2. Kích hoạt bot (dựa trên chiến thuật đã tạo)

<table><thead><tr><th width="410">URL</th><th>Method</th></tr></thead><tbody><tr><td><a href="https://services.entrade.com.vn/bot-api/bots">https://services.entrade.com.vn/bot-api/bots</a></td><td>POST</td></tr></tbody></table>

#### Request header

| Field         | Type        | Description                         |
| ------------- | ----------- | ----------------------------------- |
| Authorization | <p><br></p> | Bearer \<JWT Token>                 |
| Trading-Token | <p><br></p> | Token được cấp sau khi xác thực OTP |

#### Request Body

| Field           | Type        | Description                                        |
| --------------- | ----------- | -------------------------------------------------- |
| env             | String      | “papertrade” cho demo và “real” cho tài khoản thật |
| strategyId      | Int         | Số hiệu chiến thuật                                |
| strategyVersion | <p><br></p> | Phiên bản chiến thuật                              |
| loss\_limit     | <p><br></p> | Đóng bot khi lỗ bao nhiêu tiền                     |

#### Response Body

| Field             | Type        | Description                                           |
| ----------------- | ----------- | ----------------------------------------------------- |
| env               | String      | Môi trường đặt bot (“papertrade” hoặc “real”)         |
| id                | <p><br></p> | Số hiệu bot (dùng khi muốn dừng bot)                  |
| investorId        | String      | Mã khách hàng                                         |
| investorAccountId | Int         | Mã tài khoản của bot (dùng khi muốn nạp/rút tiền bot) |
| strategyId        | Int         | Số hiệu chiến thuật                                   |
| strategyVersion   | <p><br></p> | Phiên bản chiến thuật                                 |
| strategyName      | <p><br></p> | Tên chiến thuật                                       |
| …                 | <p><br></p> | <p><br></p>                                           |
