Broker guide · checked 29 November 2026
MT5 API for Exness
Exness accounts connect like any other MT5 account. Two things decide whether the connection and the order work: the exact server name, which ends in a number, and the symbol suffix that changes with the account type.
Server names
Use the exact name MetaTrader shows. A wrong server is the most common connection failure.
| Exness-MT5Real8 | Live. The pattern is Exness-MT5Real plus a number; your number is on the account card. |
| Exness-MT5Trial9 | Demo. Exness calls demo accounts trial accounts; the pattern is Exness-MT5Trial plus a number. |
| ExnessKE-MT5Real… | Accounts under a regional entity carry its prefix (ExnessSC, ExnessKE, ExnessMU, ExnessJO). Use the prefix only if your card shows it. |
| The account card | The server is assigned with the account. The Personal Area and the welcome email are the source; do not pick one from a list. |
Symbols and contract sizes
The same name does not always mean the same size. Check the contract before you set a lot.
| EURUSDm, XAUUSDm | Standard accounts. The -m suffix applies to forex, metals, indices and crypto. |
| EURUSDc, XAUUSDc | Standard Cent accounts. The -c suffix; lots are in cents. |
| EURUSD, XAUUSD | Pro, and often Raw Spread and Zero. No suffix. |
| XAUUSDr | Raw Spread accounts that use the -r form. Some Raw Spread accounts have no suffix at all. |
| XAUUSDz | Zero accounts that use the -z form. Check Market Watch, not a table. |
Connect it
One call adds the account. Wait for ready before sending an order.
curl -X POST https://api.socketrade.com/v2/accounts \
-H "X-API-Key: $SOCKETRADE_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountNumber": "12345678",
"accountPassword": "your-password",
"accountServerHost": "Exness-MT5Trial9",
"name": "Exness demo"
}'What to watch
- The number is part of the server. Exness-MT5Real and Exness-MT5Real8 are different servers, and a login on one is rejected on the other.
- The server comes with the account. Copy it from the Personal Area or the welcome email, never from memory or a guide.
- The account type changes the symbol name. XAUUSD works on Pro and fails on Standard, where the symbol is XAUUSDm.
- Exness does not publish a list of server numbers in its help centre. If a guide lists them, treat it as a snapshot, not a rule.