/command
{
"account_id": 11498,
"command": "close_full",
"by": "magic",
"trade_id": 123
}
{
"result": "success",
"status": 200,
"code": "SUCCESS",
"message": "Success",
"data": {
"command": {
"id": 37298742,
"created_at": "2020-04-17 12:37:17",
"updated_at": "2020-04-17 12:37:17",
"reason": "user",
"account_id": 43809,
"command": "close_full",
"status": "working",
"priority": 1,
"result": null,
"mt_error": null,
"by": "magic",
"trade_id": 123
}
}
}
Field | Required | Accepted | Description |
---|---|---|---|
account_id | yes | integer | Account ID |
command | yes | string | A valid command (see below) |
by | yes | ticket or magic | Target trade by ticket number or magic ID |
trade_id | yes | integer | The ticket number or magic ID |
percentage | no | integer | The percentage to close if close_partial being used |
Value | Description |
---|---|
close_full | Close a trade |
close_partial | Close a trade partially |
Sign up to our newsletter to keep up-to-date.