Get account .

GET
Endpoint
/accounts/{account_id}
Description

Retrieves an individual account.

Response
{
    "result": "success",
    "status": 200,
    "data": {
        "id": 1241453,
        "created_at": "2025-04-23T14:15:50Z",
        "updated_at": "2025-04-25T11:27:17Z",
        "restored_at": "2025-04-25T11:26:35Z",
        "application": "mt4",
        "type": "full",
        "account_name": "Test account 1",
        "account_number": 5449295,
        "password": "KSaaog",
        "broker_server_id": 119,
        "status": "connection_ok",
        "login_response": null,
        "modify_disabled": "no",
        "last_ping": "2025-04-25T14:12:04Z",
        "broker": "ActivTrades Plc",
        "client_name": "ben mcmullan",
        "server": "Activtrades-Demo",
        "trade_mode": "demo",
        "leverage": 30,
        "is_demo": "no",
        "suffix": "",
        "currency": "USD",
        "balance": 20123.99,
        "credit": 0,
        "equity": 20379.59,
        "free_margin": 5038.52,
        "used_margin": 15341.07,
        "open_trades": 4,
        "pending_orders": 0,
        "open_trades_lots": 4,
        "pending_orders_lots": 0,
        "daily_profit": -5.61,
        "weekly_profit": 123.99,
        "monthly_profit": 123.99,
        "total_profit": 123.99
    }
}

Parameters

Account status

The account_status field describes the state of the account connection.

Value Description
allocating Account is waiting for allocation to a server
installing Account is being built on a server
attempt_connection Account is built and attempting connection
attempt_success Connection attempt was successful
attempt_failed Connection attempt failed. Check login_response for a reason
connection_ok Account is connected
connection_slow Account was connected but not seen in within the last 10 minutes
connection_lost Account was connected but not seen for more than 10 minutes
Login response

The login_response describes the response from the MetaTrader account terminal.

Value Description
null Connected
login_success Connected
invalid_account Bad account password combination
no_connection No connection to the chosen brokers server
investor_mode You have logged onto the account with the investor password, a slave account will not be able to copy
no_info Default response when no information is available

Stay in the loop.

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