> 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/13.-sua-cau-hinh-mac-dinh-cat-lo.md).

# 13. Sửa cấu hình mặc định cắt lỗ

* **URL:**
  * PROD: <https://services.entrade.com.vn/entrade-api/risk_configs/:investorAccountId>
  * PAPERTRADE: <https://services.entrade.com.vn/papertrade-entrade-api/risk_configs/:investorAccountId>
* **Method:** `PATCH`
* **Description:** Sửa cấu hình mặc định cắt lỗ
* **Parameters:**
  * `investorAccountId`: id của tiểu khoản
* **Query parameters: None**
* **Request body:**

```
{
  "cutLossRate": 0.24,
  "investorAccountId": 1000000036,
  "trailingEnabled": false,
  "investorId": 1000000036,
  "autoIncreaseDealRate": true,
  "enableAutoDealDepositNoti": true
}
```

* `cutLossRate`: tỉ lệ cắt lỗ
* `trailingEnabled`: bật tắt tinh năng trailing stop
* `enableAutoDealDepositNoti`: bật tắt tự động nộp cọc vào deal
* **Response:**

```
{
    "investorId": 1000000036,
    "investorAccountId": 1000000036,
    "cutLossRate": 0.24,
    "trailingEnabled": false,
    "defaultTakeProfitRate": 0.0,
    "defaultTakeProfitPriceDelta": 0.0,
    "defaultTakeProfitEnabled": false,
    "defaultTakeProfitType": "Price",
    "defaultTakeProfitOrderDelta": 0.0,
    "defaultTakeProfitOrderStrategy": "TriggerPrice",
    "createdDate": "2022-11-10T03:12:40.462Z",
    "modifiedDate": "2025-11-28T04:13:15.353Z",
    "maxCutLossRate": 0.4,
    "autoIncreaseDealRate": true,
    "enableAutoDealDepositNoti": true
}
```

**Mô tả (các field quan trọng):**

* `cutLossRate`: tỉ lệ cắt lỗ
* `trailingEnabled`: bật tắt tinh năng trailing stop
* `enableAutoDealDepositNoti`: bật tắt tự động nộp cọc vào deal
