Update Broker Account
update_broker_accountUpdate a broker account configuration. Can change label, environment, credentials, server, active status, or (TradeLocker) which account of the login it uses (subAccountId). Setting isActive to false disables the account for trade execution without deleting it. MetaTrader: a new password or server of the same account is updated for free (it reconnects in about a minute); a different account number (email = new login, with password and server) switches to another account, which counts as an add (every 30 days per plan account, or 3 USD).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | New broker login email | ||
| label | No | New friendly name | |
| server | No | New broker server | |
| isActive | No | Enable/disable account. false = disabled, true = active | |
| password | No | New broker login password | |
| accountId | Yes | The broker account ID to update | |
| environment | No | New environment | |
| subAccountId | No | TradeLocker: switch this connection to another account of the same login, by its id or accNum (test_broker_account lists them; the one in use is marked usedByThisConnection). Empty string = back to the first account. |