Skip to main content
POST
Modify an open position's SL and TP
Use an open Position ticket and send login with sl and/or tp. Entry price and volume cannot be changed. Omit to preserve; 0 removes SL/TP; null is rejected. Prices are absolute. Requires a verified account, scope for this route and Idempotency-Key. The response returns a request ID; check its result before confirming success. Modification workflow and examples

Authorizations

Authorization
string
header
required

Envía el token entregado por el proveedor en el encabezado Authorization mediante autenticación Bearer.

Headers

Idempotency-Key
string
required

Persisted key for this intent. Reuse the same key and body when retrying; use a new key for another trading intent, including a modification.

Required string length: 16 - 128
Pattern: ^[A-Za-z0-9._:-]{16,128}$
Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

position
integer
required

Body

application/json
login
integer
required
sl
number | null

Absolute Stop Loss price. Omit to preserve; 0 removes SL; null is rejected.

Required range: x >= 0
tp
number | null

Absolute Take Profit price. Omit to preserve; 0 removes TP; null is rejected.

Required range: x >= 0

Response

Respuesta satisfactoria

The response is of type Respuesta: Modify an open position's SL and TP · object.