MetaTrader®, MT4® and MT5® are trademarks of MetaQuotes Ltd. This is an independent service and is not affiliated with, authorized by, or endorsed by MetaQuotes. Trustpilot4.0
DEMO ACCOUNTS · MT4 & MT5

Spin up a demo account to test against — via API.

Find brokers that offer demos, list their demo servers, and get a ready-to-use demo account — login, password and server — so you can build and test your integration without ever touching a funded account.

/DemoAccount/FindCompanies · /ServersAndAccountTypes · /Open
Search demo brokers Ready login · password · server MT4 & MT5 Connect & test in seconds
// what it is

A test account, on demand.

The Demo Account API helps you obtain a working MetaTrader demo account programmatically, so your app has something to connect and test against. /DemoAccount/FindCompanies searches brokers that offer demos; /DemoAccount/ServersAndAccountTypes lists a broker's demo servers and platforms; and /DemoAccount/Open hands you a ready account — login, password and server — that you connect with /ConnectEx like any other. It's the frictionless way to try quotes, streaming, orders and EAs before you point the API at a live account.

// three steps

Find a broker, get an account, connect.

1

Find brokers

/DemoAccount/FindCompanies?name= returns brokers that publish a demo server.

2

List servers

/DemoAccount/ServersAndAccountTypes gives that broker's demo servers and platforms.

3

Open & connect

/DemoAccount/Open returns a ready account — feed it to /ConnectEx.

demo.sh
curl "https://hrx.info/DemoAccount/Open?platform=MT5" -H "x-api-key: sk_live_…"

{ "login":"107082839", "password":"…", "server":"Ava-Demo 1-MT5",
  "broker":"Ava Trade Ltd.", "platform":"MT5" }

# connect it and you're live on a demo
curl "https://hrx.info/ConnectEx?user=107082839&password=…&server=Ava-Demo%201-MT5" \
  -H "x-api-key: sk_live_…"
// questions

Frequently asked

Can I get a MetaTrader demo account through the API?+
Yes. /DemoAccount/Open returns a ready demo account — login, password and server — that you connect with /ConnectEx and use exactly like a live account, without any funds at risk.
How do I find which brokers offer demos?+
Use /DemoAccount/FindCompanies?name= to search brokers that publish a demo server, then /DemoAccount/ServersAndAccountTypes to list that broker's demo servers and platforms.
Does it support both MT4 and MT5 demos?+
Yes. Filter by platform=MT4 or platform=MT5 when opening a demo, and connect it the same way as any account.
What can I test on a demo account?+
Everything: live quotes, WebSocket streaming, order execution, history, depth of market and custom EAs all work on a demo, so you can validate your full integration before going live.
Is a demo account free?+
Demo accounts carry no real money and are ideal for development and testing. You connect them through the same API, so moving to a live account later is just a different set of credentials.
Start free

Get a demo account and start building.

Find a broker, open a demo, and connect it — no funds, no friction, full API.