Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Set API_TOKEN in .env to match the token configured on the server.

Path Parameters

ticket
integer
required

Position ticket number

Example:

123456789

Body

application/json

Partial update for stop loss and/or take profit.

sl
number

New stop loss price. Omit to leave unchanged.

Example:

94700

tp
number

New take profit price. Omit to leave unchanged.

Example:

95400

Response

Updated position

An open position.

comment
string
Example:

"novosky"

magic
integer

EA magic number.

Example:

20250101

price_current
number
Example:

95050

price_open
number
Example:

95000

profit
number

Floating profit in account currency.

Example:

5

sl
number
Example:

94800

swap
number
Example:

-0.12

symbol
string
Example:

"BTCUSD"

ticket
integer
Example:

123456789

time
integer

Position open time as Unix epoch.

Example:

1777879028

tp
number
Example:

95300

type
integer

0 = BUY, 1 = SELL.

Example:

0

volume
number
Example:

0.01