Hosted MT5 API

Every MT5account,one live API.

Balances, live prices, orders, and instant trade alerts — all through one simple API. We run everything behind it, so you just build.

Real MT5 executionLive prices & fillsThousands of accountsDEMO-safe by default
Product

One API. Everything your MT5 accounts can do.

Account data, quotes, orders, history, and real-time events — for one account or thousands, with nothing left out.

Built for thousands of accounts

One API serves thousands of accounts at once. Each account stays fully isolated — its data and trades are never mixed with another’s.

Real MetaTrader 5 execution

Powered by genuine MetaTrader 5 — exact fills, every order type, true-to-platform behavior.

Any MT5 broker

Works with any MT5 broker — we handle each broker’s symbol quirks for you.

Real-time trade events

Subscribe once and get quotes plus the moment a position closes — take-profit, stop-loss, or manual — in the shape you already parse.

Private & secure

Stores nothing and never sees your passwords — your credentials stay yours.

No duplicate orders

A clientOrderId replays the original result instead of double-filling on retry.

Complete API coverage

Account, market, trading, history, analytics, and streams — all implemented.

How it works

You send a request. We handle everything else.

Your app talks to one clean API. We host and manage the entire live MT5 side for you — so there’s nothing to install, run, or keep alive.

1

Send a request

Call one simple API — ask for balances, prices, or positions, or place an order.

2

We handle the rest

We host and manage the full live connection to your MT5 broker — nothing for you to install, run, or maintain.

3

Get instant results

Data and fills come straight back — plus real-time alerts the moment a trade happens.

The API

A handful of calls covers most of what you’ll build.

Read an account, price a symbol, place a trade, or stream events — a few simple calls, one clean API.

traderail · account
GET /v1/AccountSummary?id=acct-5012345678
ApiKey: ••••••••
// response appears here
GET · account

Send simple symbols like XAUUSD — we map them to each broker’s exact name for you.

Copy-trade pattern

Fan one signal across every account.

Send one order to a group and it reaches every account at once — placed in parallel, fully isolated, and filled at each broker in about one trade’s time.

Add or remove accounts whenever you like — the group just gets wider. Every account stays fully isolated, with no cross-account leakage.

0+accounts in a group *
~250msper fill *
0cross-account leakage
1 order → whole group

* Illustrative figures.

Use cases

Built for teams that trade at scale.

If your roadmap needs reliable, programmatic MT5 access across many accounts, it’s already built — and proven in production.

01

Automated trading platforms

Run strategies on your users’ accounts programmatically — the exact pattern our own platform runs in production.

accounts on autopilot
02

Copy-trading & signal services

Send one signal to every subscriber’s account at once — each account handled on its own, all filled together.

1 signal → N accounts
03

Prop firms & multi-account desks

Provision, monitor, and trade many funded accounts from one API — each one fully isolated from the others.

many accounts, one API
04

Algo & quant execution

Real MT5 fills with live updates, plus safe retries that never place the same order twice.

real fills · safe retries
Why TradeRail

The reasons teams standardize on us.

01

Real execution fidelity

Exact MT5 fills, every order type, and full support for automated strategies — the real platform, not an approximation.

02

Every account fully isolated

Each account is completely isolated — requests are handled reliably and in order, and no account ever sees another’s data.

03

Complete coverage, nothing faked

Account, market, trading, history, analytics, and real-time close events are all implemented — and covered by tests.

04

Proven, not theoretical

119 automated tests green, validated end-to-end on a live MT5 demo account with multi-account isolation demonstrated.

Proven & fast

Battle-tested on real MT5.

Not a spec on paper — validated end-to-end on a live account and tuned against the quirks only genuine MT5 reveals.

0
automated tests green
0.3s
symbol list fetch
~60
accounts running at once *
<40ms
typical account read *

* Indicative figures from our own testing; real-world speed and scale vary with conditions.

Access

Getting started is a conversation, not a signup.

Tell us about your accounts and volume — we provision your credentials, you log in for your API key, and you’re calling the API the same day. The docs and Swagger are public, so you can see exactly how it works first.

1

Request access

Tell us your use case and how many accounts you expect to run.

a short conversation
2

We provision

We set everything up and issue your login credentials.

managed on our infra
3

Log in

Sign in to your dashboard and copy your API key.

your key, your account
4

Build

Call the API. The docs and Swagger are public.

live the same day

Pricing is tailored to your connected accounts.

No self-serve metering and no surprise bills — we size it to your account volume and set everything up for you. There is no MT5 infrastructure for you to run, ever.

FAQ

Answers before you write a line of code.

A managed MT5 API lets you connect MetaTrader 5 accounts and control them over the web — read balances and live prices, place and manage orders, and receive real-time trade updates — through one REST and WebSocket API. “Managed” means TradeRail runs and keeps all the infrastructure online; you just call the API. Nothing to install, host, or maintain.
Any broker that offers MT5. It works the same across brokers — we handle the broker-specific differences for you. We validate end-to-end on real broker accounts (for example, PU Prime).
Yes. We run everything on our infrastructure and keep it online. There is nothing for you to deploy, patch, or keep alive.
It’s sales-led: contact us, we provision your credentials, and you log in to copy your API key. Every request carries your API key and names the account it’s for. The docs and Swagger are public, so you can evaluate the API before you commit.
No. We never see or store your account passwords, and nothing is written to disk or a database — each request is answered live, then nothing is kept.
Both work through the same API. Trading is DEMO-only by default; going live on a real account requires an explicit opt-in, which protects against accidental live trades while you build.
Yes. Expert Advisors and every order type behave exactly as they do on the platform — market and pending orders, modify, close (full or partial), SL/TP, and full trade history.
Thousands. Capacity scales with your account count, and the API stays exactly the same whether it’s one account or ten thousand.
Yes. A single API call can broadcast the same order to many accounts at once — the core of copy-trading and PAMM-style setups — instead of firing them one by one. It scales the same whether that’s ten accounts or thousands.
Yes. Alongside the REST API, a WebSocket stream pushes live quotes and trade events as they happen, so you don’t have to poll for updates.
Get started

Point your app at one MT5 API.

Request access and we’ll provision your accounts. Read an account, price a symbol, place a trade, and stream closes — all through one API.

$ curl -H "ApiKey: ••••" https://api.traderail.cloud/v1/AccountSummary?id=acct-5012345678