Tradesync
Browse API reference
API reference

Update account

PATCHhttps://api.tradesync.com/accounts/{account_id}

Update selected account settings.

Last updated

Path parameters

account_idType: integer
Tradesync account ID belonging to the authenticated user

Request body

All fields are optional. Omitted fields are unchanged.

account_nameType: string
Account reference nameAccepted values / limits: 4 to 30 characters; letters, digits, hyphens, underscores, and whitespace
suffixType: string or null
Preferred symbol suffix for copying FX tradesAccepted values / limits: No whitespace
follower_onlyType: string
Whether the account is restricted to being a follower. Setting yes is rejected if the account currently has followers.Accepted values / limits: yes, no

Response example

See response field definitions for field types and conditional fields.

Example for a connected MT4 account. Platform-specific fields vary with the account's application.

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 1241453,
        "created_at": "2025-04-23T14:15:50Z",
        "updated_at": "2025-04-25T14:14:41Z",
        "restored_at": "2025-04-25T11:26:35Z",
        "application": "mt4",
        "type": "full",
        "account_name": "Test account 3",
        "account_number": 5449295,
        "password": "KSaaog",
        "broker_server_id": 119,
        "status": "connection_slow",
        "login_response": null,
        "modify_disabled": "no",
        "last_ping": "2025-04-25T14:13:30Z",
        "broker": "Example broker",
        "client_name": "Example client",
        "server": "Example-Demo",
        "trade_mode": "demo",
        "leverage": 30,
        "is_demo": "no",
        "suffix": "s",
        "currency": "USD",
        "balance": 0,
        "credit": 0,
        "equity": 0,
        "free_margin": 0,
        "used_margin": 0,
        "open_trades": 0,
        "pending_orders": 0,
        "open_trades_lots": 0,
        "pending_orders_lots": 0,
        "daily_profit": 0,
        "weekly_profit": 0,
        "monthly_profit": 0,
        "total_profit": 0,
        "account_identifier": 5449295,
        "integration": "terminal",
        "proxy_server_id": null,
        "follower_only": "no",
        "broker_offset": 0
    }
}

Errors

Code HTTP status Condition
lead_has_followers 422 follower_only is set to yes while the account has followers

See also common response codes.