/account
{
"mt_version": 4,
"account_name": "My account",
"account_number": 123456,
"password": "password",
"broker_server_id": 123
}
Field | Required | Accepted | Description |
---|---|---|---|
mt_version | yes | 4 or 5 | MT version of account |
account_name | yes | string | A reference name |
account_number | yes | integer | MT account number |
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 |
When you add an account it can take up to 1 minute to know whether the connection was successful. To know the result of a connection you need to check the status field. We recommend you poll once every 10 seconds for the latest status. See Get account for more details.
Code | Status | Description |
---|---|---|
TOO_MANY_ACCOUNTS | 422 | You are at the maximum amount of accounts for your subscription package |
Sign up to our newsletter to keep up-to-date.