Get account .

GET

Retrieves an individual account.

Request

/accounts/{account_id}

Response

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 64,
        "created_at": "2021-03-09T11:52:18.000000Z",
        "updated_at": "2021-03-18T15:21:55.000000Z",
        "mt_version": 4,
        "account_name": "Account 1",
        "account_number": 123456,
        "password": "password",
        "broker_server_id": 1,
        "broker_server_address": null,
        "status": "connection_ok",
        "login_response": "login_success",
        "last_ping": "2021-03-18 15:21:55",
        "broker": "trades Plc",
         "..": ".........."
    }
}

Attributes

account_status

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

login_response

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
investor_mode You have logged onto the account with the investor password, a slave account will not be able to copy
no_info Default response when no information is available

Stay in the loop..

Sign up to our newsletter to keep up-to-date.