AlgoDeltaFXDocs
POST

Replace MT5 Account

Master API v1

Update the login, password or server of an existing connected account.

POSThttps://api.algodeltafx.com/api/v1/users/broker/replacebroker

Swap the MT5 credentials or server behind an existing account slot, for example after a password change, a server migration or when a prop firm issues a new funded account. The broker_id stays the same.

View .md Ask Claude Ask ChatGPT

Authentication

Send the master token as Authorization: <MASTER_TOKEN> (no Bearer prefix). Get one from Get Master Token.

Request body

JSON body, Content-Type: application/json.

  • broker_idintegerrequired

    ID of the connected account to replace. Get it from List MT5 Accounts.

  • nic_namestringrequired

    Nickname shown for this account in the dashboard and API responses.

  • fx_serverstringrequired

    MT5 broker server name exactly as it appears in the MetaTrader 5 login window, for example Exness-MT5Real29.

  • fx_loginintegerrequired

    MT5 account number (login ID).

  • fx_passwordstringrequired

    MT5 trading (master) password of the account. The investor (read-only) password cannot place trades.

  • is_host_basedbooleanrequired

    false to connect by broker server name (fx_server). true to connect directly to an access-server IP and port (fx_host, fx_port).

  • fx_hoststring

    Access-server IP address. Required when is_host_based is true.

  • fx_portintegerdefault 443

    Access-server port. Used when is_host_based is true.

Response

Returns the standard response envelope: status, msg and data.

Try it

Live API
Request body (JSON)

This sends a live request that can change real trades or accounts. Use a demo account to experiment.

Requests go straight from your browser to api.algodeltafx.com. Your token is not sent anywhere else.

Example request

curl -X POST https://api.algodeltafx.com/api/v1/users/broker/replacebroker \
  -H "Authorization: $MASTER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "broker_id": 101,
  "nic_name": "Joe Max",
  "fx_server": "Exness-MT5Real29",
  "fx_login": 12345678,
  "fx_password": "MT5_PASSWORD",
  "is_host_based": false,
  "fx_host": "192.168.1.1",
  "fx_port": 443
}'

Last updated 2026-11-04