You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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();
Activity
solutionprovider9174 commentedon Nov 20, 2026
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.
Barttj92 commentedon Nov 21, 2026
I have the same..
solutionprovider9174 commentedon Nov 22, 2026
Here is no team to support for this problem?
solutionprovider9174 commentedon Nov 22, 2026
@binbrv
@Barttj92
Please use metatraderapi.net