/account/{account_id}
{
"result": "success",
"status": 200,
"code": "SUCCESS",
"message": "Success",
"data": {
"account": {
"id": 11497,
"created_at": "2019-03-27 10:20:50",
"updated_at": "2019-04-20 04:36:01",
"mt_version": 4,
"account_name": "Test",
"account_number": 123456,
"password": "password",
"broker_server_id": null,
"broker_server_id": 123,
"status": "connection_lost",
"login_response": "login_success",
"last_ping": "2019-04-20 03:34:35",
"broker": "MetaQuotes Software Corp.",
"suffix": "",
"equity_protect": "off",
"equity_protect_value": 0,
"currency": "USD",
"balance": 50077.33,
"credit": 0,
"equity": 50077.33,
"free_margin": 50077.33,
"used_margin": 0,
"open_trades": 0,
"pending_orders": 0,
"daily_profit": 0,
"weekly_profit": 0,
"monthly_profit": 0,
"total_profit": 77.33
}
}
}
The account_status field describes the state of the account connection.
Value | Description |
---|---|
allocating | Account is waiting for allocation to a server |
installing | Account is being built on a server |
attempt_connection | Account is built and attempting connection |
attempt_success | Connection attempt was successful |
attempt_failed | Connection attempt failed. Check login_response for a reason |
connection_ok | Account is connected |
connection_slow | Account was connected but not seen in within the last 10 minutes |
connection_lost | Account was connected but not seen for more than 10 minutes |
The login_response describes the state of the account connection.
Value | Description |
---|---|
login_success | Connection successful |
invalid_account | Bad account password combination |
no_connection | No connection to the chosen MT server |