Update account .

PATCH

Request

/accounts/{account_id}

Body

{
    "account_name": "Test name",
    "suffix": ".uda",
    "equity_protect": "off"
}

Response

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

Attributes

Field Required Accepted Description
account_name no string A reference name
suffix no string The preferred suffix to use when copying FX trades
equity_protect no string A valid equity protect mode to ensure the equity protection is set on the slave account, see equity_protect modes below

equity_protect

Value Description
off Do nothing
alert Send webhook to notify
alert_disable_copiers Send webhook and disable any related copiers to this account
alert_disable_copiers_close_trades Send webhook, disable any related copiers to this account and close trades

Stay in the loop..

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