Socketrade

Broker guide · checked 29 November 2026

MT5 API for FTMO

An FTMO account is an MT5 account like any other for reads and orders. What differs is what the account is for: a challenge or verification account trades simulated capital under FTMO's rules, not your own funds at a broker.

Server names

Use the exact name MetaTrader shows. A wrong server is the most common connection failure.

FTMO-ServerChallenge and verification accounts on the first server.
FTMO-Server2 to FTMO-Server5The other live server numbers. Use the one on the account card.
FTMO-Demo, FTMO-Demo2Practice accounts, separate from a challenge.
The account cardFTMO lists the server in the Client Area credentials block and in the welcome email.

Symbols and contract sizes

The same name does not always mean the same size. Check the contract before you set a lot.

EURUSDStandard spelling. Check the account's symbol list before hard-coding it.
XAUUSDGold. Confirm the contract size on the challenge account.
Indices and cryptoUse the names Market Watch shows; they can differ between account types.

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-trading-password",
    "accountServerHost": "FTMO-Server2",
    "name": "FTMO challenge"
  }'

What to watch

  • A challenge account is simulated. The daily-loss, maximum-loss and profit-target rules are FTMO's, and the API does not enforce them for you.
  • FTMO issues an investor (read-only) password as well as the trading password. Reads work with either; orders need the trading password.
  • The server is on the account card. FTMO-Server and FTMO-Server2 are different servers, not aliases.
  • Server lists in third-party guides go stale. If the name is not in your Client Area, it is not your server.

Sources