API الوثائق
post
/api/v1/Trade/orders/tpslAttaches take-profit and/or stop-loss LTP bracket legs to an existing open position. Requires an open position; at least one of takeProfitPrice or stopLossPrice must be greater than zero.
Trade
حدود
version
path · string
مطلوب
نص الطلب
{
"accountId": 0,
"instrument": "string",
"takeProfitPrice": 0,
"stopLossPrice": 0
}استجابات
- 202TP/SL accepted.application/json
{ "status": "accepted", "message": "Take-profit/stop-loss accepted for the open position.", "takeProfitOrderId": -43, "stopLossOrderId": -44 } - 400Validation failed or no open position.application/json
{ "status": "rejected", "message": "Instrument is required." }