15. Chốt lời cắt lỗ từng Deal
URL:
PROD: https://services.entrade.com.vn/entrade-api/deal_risks/:dealId
PAPERTRADE: https://services.entrade.com.vn/papertrade-entrade-api/deal_risks/:dealId
Method: PATCH
Description: Sửa cấu hình chốt lời cắt lỗ Deal
Parameters:
dealId: id Deal
Query parameters: None
Request body:
{
cutLossEnabled: true
cutLossOrderDelta: -2
cutLossOrderStrategy: "TriggerPrice"
cutLossPriceDelta: 5
cutLossRate: 0.88
cutLossType: "Rate"
takeProfitEnabled: true
takeProfitOrderDelta: -2
takeProfitOrderStrategy: "TriggerPrice"
takeProfitPriceDelta: 5
takeProfitRate: 1
takeProfitType: "Rate"
trailingEnabled: false
}Mô tả:
cutLossEnabled: Bật tắt tính năng cắt lỗ cho Deal
cutLossType: Loại cắt lỗ
"Rate": Theo tỷ lệ
"TriggerPrice": Theo khoảng điểm
cutLossRate: Tỷ lệ lỗ
cutLossPriceDelta: Khoảng điểm cắt lỗ để xác định giá Kích hoạt
cutLossOrderStrategy: Chiến thuật đặt lệnh cắt lỗ
"TriggerPrice": Đặt lệnh theo biên độ
"CeilFloor": Đặt lệnh theo Giá Trần/ Sàn
cutLossOrderDelta: Biên độ để xác định Giá đặt
takeProfitEnabled: Bật tắt tính năng chốt lời cho Deal
takeProfitType: Loại chốt lời
"Rate": Theo tỷ lệ
"TriggerPrice": Theo khoảng điểm
takeProfitRate: Tỷ lệ lãi
takeProfitPriceDelta: Khoảng điểm chốt lời để xác định giá Kích hoạt
takeProfitOrderStrategy: Chiến thuật đặt lệnh chốt lời
"TriggerPrice": Đặt lệnh theo biên độ
"CeilFloor": Đặt lệnh theo Giá Trần/ Sàn
takeProfitOrderDelta: Biên độ để xác định Giá đặt
trailingEnabled: Bật tắt tính năng Trailing
Response:
Mô tả (các field quan trọng):
cutLossEnabled: Bật tắt tính năng cắt lỗ cho Deal
cutLossType: Loại cắt lỗ
"Rate": Theo tỷ lệ
"TriggerPrice": Theo khoảng điểm
cutLossRate: Tỷ lệ lỗ
cutLossPriceDelta: Khoảng điểm cắt lỗ để xác định giá Kích hoạt
cutLossOrderStrategy: Chiến thuật đặt lệnh cắt lỗ
"TriggerPrice": Đặt lệnh theo biên độ
"CeilFloor": Đặt lệnh theo Giá Trần/ Sàn
cutLossOrderDelta: Biên độ để xác định Giá đặt
takeProfitEnabled: Bật tắt tính năng chốt lời cho Deal
takeProfitType: Loại chốt lời
"Rate": Theo tỷ lệ
"TriggerPrice": Theo khoảng điểm
takeProfitRate: Tỷ lệ lãi
takeProfitPriceDelta: Khoảng điểm chốt lời để xác định giá Kích hoạt
takeProfitOrderStrategy: Chiến thuật đặt lệnh chốt lời
"TriggerPrice": Đặt lệnh theo biên độ
"CeilFloor": Đặt lệnh theo Giá Trần/ Sàn
takeProfitOrderDelta: Biên độ để xác định Giá đặt
trailingEnabled: Bật tắt tính năng Trailing
Last updated