Updates an account connection.
/accounts/{account_id}/connection
{
"password": "password",
"broker_server_id": "1"
}
{
"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": login_success,
"last_ping": "2021-03-18 15:48:55",
"broker": "trades Plc",
"..": ".........."
}
}
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 |
Code | Status | Description |
---|---|---|
server_processing_request | 422 | The account is currently locked due to a previous connection update |
Sign up to our newsletter to keep up-to-date.