ORDER_SEND
Description
Send Market or Limit type of orders.
Important
All JSON commands you send to MetaSocket should be in a single line format similar to the examples below. Additionally, example replies in this page are presented in a "beautified" format for presentation purposes. Actual replies are always returned in a single line.
Example
{"MSG": "ORDER_SEND","SYMBOL": "EURUSD.s","VOLUME": 0.1,"TYPE": "ORDER_TYPE_BUY","SL": 1.095,"TP": 1.205,"COMMENT": "Buy market order","MAGIC": 12345}
Reply
{
"MSG": "ORDER_SEND",
"TYPE": "ORDER_TYPE_BUY",
"RETCODE": 10009,
"DEAL": 48383882,
"ORDER": 51544405,
"VOLUME": 0.1,
"PRICE": 1.1819,
"BID": 0,
"ASK": 0,
"REQUEST_ID": 268199107,
"RETCODE_EXTERNAL": 0,
"ERROR_ID": 0,
"ERROR_DESCRIPTION": "The operation completed successfully"
}