Modify a Position

Change the stop loss or take profit on an open position. Send only the field you are changing; pass null to clear one.

Volume and direction cannot be modified — close the position and open a new one instead.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Ticket number of the position or order

Body Params

Edit an open position. Direction and volume are not field-edits on an open
trade (close + reopen for those); only protective levels + comment.

Responses

400

Rejected — price level invalid or too close to market

401

Invalid or missing API key

403

Access denied (credential scope)

404

Position not found

429

Rate limit exceeded

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json