EXIT

Description

Disconnects MetaSocket from TCP command port 8777 port (or whatever port you used). To start sending commands again, you have to restart the MetaTrader terminal or re-run MetaSocket.

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": "EXIT"}

Reply

{
"MSG": "EXIT",
"STATUS": "SHUTTING_DOWN",
"ERROR_ID": 0,
"ERROR_DESCRIPTION": "MetaSocket is shutting down"
}