Skip to content

MT4Account.AccountSummary method

Synchronously retrieves summary information about the currently connected MT4 trading account.

public AccountSummaryData AccountSummary(DateTime? deadline = default, 
    CancellationToken cancellationToken = default)
parameter description
deadline Optional gRPC deadline for the request. If not specified, the default timeout will apply.
cancellationToken Optional CancellationToken to cancel the request.

Return Value

An AccountSummaryData object containing information such as account balance, equity, trade mode, server time, credit, leverage, and currency.

Exceptions

exception condition
ConnectExceptionMT4 Thrown if the account is not connected (i.e., connection ID is not initialized).
ApiExceptionMT4 Thrown if the gRPC server returns an error response.

See Also