Error
Positions
Modify stop loss or take profit
Updates the SL and/or TP on an existing open position via mt5.order_send() with ORDER_TYPE_SLTP.
PUT
Error
Authorizations
Set API_TOKEN in .env to match the token configured on the server.
Path Parameters
Position ticket number
Example:
123456789
Body
application/json
Response
Updated position
An open position.
Example:
"novosky"
EA magic number.
Example:
20250101
Example:
95050
Example:
95000
Floating profit in account currency.
Example:
5
Example:
94800
Example:
-0.12
Example:
"BTCUSD"
Example:
123456789
Position open time as Unix epoch.
Example:
1777879028
Example:
95300
0 = BUY, 1 = SELL.
Example:
0
Example:
0.01