ModifyOrder
ModifyOrder - request for order modification by id
Example:
{"id": 11, "type":"ModifyOrder", "body": {"ticket": 969163, "price": 1.001}}
Request Body Fields:
ticket
unsigned long long
the ticket of order to be closed on Meta Trader Server
price
double nullable
new price of activation for pending, limit, stop orders
price_trigger
double nullable
new price of triggering for stop limit orders
sl
double nullable
new Stop Loss level for trading operations
tp
double nullable
new Take Profit level for trading operations
time_out
int64
time in milliseconds that should be wait for async requests results (it can be from 109 msec to 7 sec; if you set time_out <109 msec, it will be 109 msec; if you set time_out > 7 sec, it will be 7 sec)
Responce Type - ModifyOrder.
Responce Body Fields:
result
int
result of operation Meta Trader server
ticket
unsigned long long
the ticket of new opened order on Meta Trader Server
price
double
price of order execution, in case of pending, limit, stop orders price is 0
time
int64
time of order execution, in case of pending, limit, stop orders time is 0
symbol
string
a string with the symbol name
type
int
type of the order
action
int
type of action to which the trade request belongs
price_order
double
the price of an order in a trade request
price_trigger
double
the price, at which a Limit order is placed when the Stop Limit order triggers
tp
double
the Take Profit level
sl
double
the Stop Loss level
volume
double
the Volume of modified trade requests
Example:
Last updated