Socketrade

29 November 2026 · 4 min read

Three MT5 broker quirks that break an API

An MT5 API is not one contract. It is a contract with every broker, and the brokers disagree about names, sizes and hours. These are the three that cause the most support tickets.

1. The server name is not guessable

Deriv-Demo is notDeriv, andTrade245Global-Live is notTrade245. A wrong server returns an invalid-account error, which reads like a wrong password. It is usually the server.

2. Micro means a different contract

On Deriv, XAUUSD is 100 oz per lot and XAUUSDmicro is 1 oz. A 0.10 lot is 10 oz on the first and 0.1 oz on the second. Trade245 uses a.mic suffix, and Razor uses.USTECH.mic for its micro NASDAQ. The same lot number is a different exposure on every one of them.

The fix is not memory. Read the symbol parameters for the account and store the contract size next to the symbol. If your UI says “0.10 lots”, it should also know what that means in ounces or index units.

3. A zero is not always “no price”

Some feeds send one side of a quote at a time, and a weekend closes forex entirely. A zero bid or a missing tick can mean “unchanged” or “not sent yet”, not “the market is gone”. Use the last known other side, and test weekend logic with a synthetic index that actually trades.

The rule

Treat every broker as its own small dialect: server name, symbol spelling, contract size and market hours. The API can normalize the transport; it cannot normalize the broker's vocabulary. That part is yours, and it is where the bugs live.