Skip to content

Exness accounts are not being connected #18

Open

Description

@binbrv

Hi there!
I'm getting the following error when trying to connect to the broker:
"TimeoutError: Timed out waiting for account xxxxxx to connect to the broker"

I've double-checked all the login credentials and also tried several other Exness accounts, but it always fails at the following step:
await account.waitConnected();

Here is the account JSON:

{
"state": "DEPLOYED",
"magic": 0,
"connectionStatus": "DISCONNECTED",
"quoteStreamingIntervalInSeconds": 2.5,
"symbol": "EURUSD",
"reliability": "high",
"tags": [],
"resourceSlots": 1,
"copyFactoryResourceSlots": 1,
"region": "london",
"name": "XXXXXXX",
"login": "228xxxxxx",
"server": "Exness-MT5Real31",
"type": "cloud-g2",
"version": 5,
"hash": 44546,
"userId": "93abd52dcb946cf7xxxxxxxxxx",
"copyFactoryRoles": [],
"metastatsApiEnabled": false,
"riskManagementApiEnabled": false,
"accountReplicas": [],
"application": "MetaApi",
"createdAt": "2026-11-18T08:30:34.482Z",
"primaryReplica": true,
"connections": []
}

Here is the code:

    const account = await api.metatraderAccountApi.getAccount(accountId);
    const initialState = account.state;
    const deployedStates = ["DEPLOYING", "DEPLOYED"];
    
    if (!deployedStates.includes(initialState)) {
      // wait until account is deployed and connected to broker
      console.log("Deploying account");
      await account.deploy();
    }

    console.log("Waiting for API server to connect to broker (may take couple of minutes)");
    await account.waitConnected(); // TimeoutError at here

    // connect to MetaApi API
    let connection = account.getRPCConnection();
    await connection.connect();

    // wait until terminal state synchronized to the local state
    console.log("Waiting for SDK to synchronize to terminal state (may take some time depending on your history size)");
    await connection.waitSynchronized();

Any help from you would be highly appreciated.

Thanks

Activity

  1. solutionprovider9174 commented on Nov 20, 2026

    @solutionprovider9174

    I think metaapi cloud is not working.
    I am using this api for my platform. but my all platform guys's mt accounts are not able to be connected.

  2. Barttj92 commented on Nov 21, 2026

    @Barttj92

    I have the same..

  3. solutionprovider9174 commented on Nov 22, 2026

    @solutionprovider9174

    Here is no team to support for this problem?

  4. solutionprovider9174 commented on Nov 22, 2026

    @solutionprovider9174

    @binbrv
    @Barttj92
    Please use metatraderapi.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions