Socketrade

Broker guide · checked 29 November 2026

MT5 API for Pepperstone

Pepperstone names its servers by legal entity. The main live server is Pepperstone-MT5-Live01 and the demo is Pepperstone-Demo; UK, EU and UAE accounts sit on their own servers. A demo account lasts 60 days, so an old login can expire on you.

Server names

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

Pepperstone-MT5-Live01Live, Pepperstone Group. The server on the main MT5 web terminal.
Pepperstone-DemoDemo, Pepperstone Group. The safest first connection.
PepperstoneUK-Live, PepperstoneUK-DemoUK entity, separate live and demo servers.
PepperstoneEU-Live, PepperstoneGmbH-LiveEU entities. Use the one on the account card.
PepperstoneUAE-MT5-Live01, PepperstoneMU-MT5-Live01, PepperstoneKE-MT5-Live01UAE, Mauritius and Kenya entities.

Symbols and contract sizes

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

EURUSDUnsuffixed. Check Market Watch on your account before hard-coding it.
XAUUSDGold, unsuffixed. Confirm the contract size on the account.
Indices and cryptoUse the platform's names; 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-demo-password",
    "accountServerHost": "Pepperstone-Demo",
    "name": "Pepperstone demo"
  }'

What to watch

  • The entity decides the server. A UK login on Pepperstone-MT5-Live01 fails even with the right password.
  • Pepperstone demo accounts expire 60 days after creation. An expired demo looks like a bad password to your code.
  • Pepperstone also documents hostnames (mt5-1.pepperstone.com, mt5-demo01.pepperstone.com) for the terminal's server field. The API wants the server name, not the hostname.
  • Account numbers and passwords are per account; a second Pepperstone account needs its own connection.

Sources