Update account connection .

PATCH

Request

/accounts/{account_id}/connection

Body

{
    "password": "password",
    "broker_server_id": "1"
}

Response

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 64,
        "created_at": "2021-03-09T11:52:18.000000Z",
        "updated_at": "2021-03-18T15:49:53.000000Z",
        "mt_version": 4,
        "account_name": "Test name",
        "account_number": 123456,
        "password": "password",
        "broker_server_id": "1",
        "broker_server_address": null,
        "status": "attempt_connection",
        "login_response": null,
        "last_ping": "2021-03-18 15:48:55",
        "broker": "trades Plc",
        "..": ".........."
    }
}

Attributes

Field Required Accepted Description
password yes string MT account password
broker_server_id yes (if not using broker_server_address) integer Valid broker server ID
broker_server_address yes (if not using broker_server_id) string The real address found in the srv file, this can only be added for MT4 accounts

Fail codes

Code Status Description
server_processing_request 422 The account is currently locked due to a previous connection update

Stay in the loop..

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