Precise • Fast • Dependable

The MetaTrader 5 API for trading products.

Connect MT5 accounts by login, password and server, and trade them with one API call. Place and manage orders, trade many accounts in one call, and know the result of every trade — hosted, secured and monitored for you.

  • Live in minutes
  • No VPS, nothing to install
  • Your broker, your accounts
~10 s
to connect an account
~100 ms
order round trip to the broker
30 ms
100 accounts, first to last, in our benchmark
0
servers or terminals for you to run

Measured by us, not promised — the 30 ms in a benchmark against an instant broker. How we measured

Product

Everything you need on MT5, in one API.

Skip the VPS, the terminals and the plumbing. Connect accounts, trade, and grow from one account to hundreds on Enterprise through one clean JSON API. How the MT5 API works

Connect by password

Add an MT5 account with its login, password and server. It comes online in about 10 seconds — always connected, or only when you trade.

Trade execution

Market and pending orders, partial closes, stop-loss and take-profit changes — each with a clear, final result.

Multi-account execution

One call places the same trade on every account you choose, at the same moment, with a result for each.

Outcomes, never guessed

Every order ends in a recorded state. If the answer is lost, it is marked unresolved and confirmed against the broker's records — never guessed, never resent.

Scoped API keys

Separate live and test keys, each limited to what it needs. Revoke one and it stops working on its next request.

Credential security

Broker passwords are encrypted per account and never returned by the API or written to a log.

Solutions

Built for the way you trade.

From a signal service with dozens of members to platforms with hundreds of accounts on Enterprise — one API, priced by the accounts you connect.

Multi-account execution

One call. Every account.

30 ms from the first account's order to the last, across 100 accounts, in our benchmark against an instant broker — and every multi-account order reports its own spread.

EURUSD · buy · 100 accounts
30 msfirst account to last
Benchmark
10 accounts50 accounts100 accounts
Time from the first account's order to the last, by number of accounts, in our benchmark against an instant broker — every multi-account order reports its own spread. The more accounts you trade at once, the less each one adds: 1.7 ms at 10 accounts, 0.3 ms at 100.

Your rules

Trade the accounts that are ready, wait for all of them, or set a deadline.

Sized per account

Give each account its own volume, to match its balance.

A result for each

Every account reports its own fill, so nothing is hidden in an average.

Safe to retry

Sending the same request twice with the same Idempotency-Key never places a second trade.

Developers

Your first trade
in five minutes.

A REST API that behaves the way you expect: JSON in and out, stable error codes, and requests that are safe to retry.

  • Examples in 13 languages for every endpoint
  • Try any request from your browser
  • OpenAPI spec — generate a client in any language
  • Separate live and test keys
curl -X POST https://api.fxapis.com/v1/accounts/$ACCOUNT_ID/orders/market \
  -H "Authorization: Bearer $FXAPIS_KEY" \
  -H "Idempotency-Key: 7f3e0c9a-order-1" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "EURUSD",
    "side": "buy",
    "volume": "0.10"
  }'
Response 201 Created
{
  "data": {
    "id": "b1c7…9e2a",
    "symbol": "EURUSD",
    "side": "buy",
    "volume": "0.10",
    "state": "filled",
    "filledVolume": "0.10",
    "filledPrice": "1.13722",
    "brokerOrderId": "2104837096"
  }
}
Why fxapis

Built for what comes next.

Precise

A recorded result for every order; an unclear one is confirmed with the broker, not guessed.

Fast

Orders reach the broker in about 100 ms. In our benchmark against an instant broker, 100 accounts went out within 30 ms, first to last.

Dependable

Each account runs in its own terminal, and a billing issue never stops you closing a position.

Pricing

Simple pricing. Scale when you trade.

Pay by card, monthly. On paid plans, orders beyond the allowance are billed per order up to twice the allowance, then new opening orders are refused. On Free they are refused at the allowance. Closing is never refused for billing.

Production

Most teams start here

Five accounts included, then a price per account as you grow.

$99/ month
  • 5 live accounts included
  • Up to 250 accounts — $5 each for accounts 6–50, $3 each for accounts 51–250
  • 2,000 opening executions per account a month, pooled
  • Then $10 per 1,000 executions
  • Always-on: +$7 per account a month
  • Copy trading: 0 followers included, then +$8 per follower a month
  • 2 demo accounts free
  • Multi-account execution
  • Pending orders
  • Always-connected accounts
  • Event webhooks

Business

250 accounts included, lower prices per account, priority support and invoicing.

$749/ month
  • 250 live accounts included
  • Up to 1,000 accounts — $2 each for accounts 251–1,000
  • 3,000 opening executions per account a month, pooled
  • Then $8 per 1,000 executions
  • Always-on: +$8 per account a month
  • Copy trading: 25 followers included, then +$6 per follower a month
  • 10 demo accounts free
  • Multi-account execution
  • Pending orders
  • Always-connected accounts
  • Event webhooks

Enterprise

Dedicated capacity, an SLA and a contract, for large operations.

Custom
  • As many accounts as you run
  • A price and limits agreed with you
  • Monthly or annual — card or transfer
  • Multi-account execution
  • Pending orders
  • Always-connected accounts
  • Event webhooks
FAQ

Questions, answered

Do I need MetaTrader or a VPS?

No. MetaTrader 5 runs on our side, hosted in the EU. You send HTTPS requests to the API; there is no terminal, VPS or Expert Advisor for you or your users to install, update or keep running.

Which brokers work?

fxapis connects an account with the same details you would type into MetaTrader 5: the account number, the trading password and the broker's server name. If an account can sign in to MT5 that way, it can usually be connected. Accounts that need two-factor sign-in or a broker certificate are reported as needing attention when they connect, rather than failing later. Try your broker with a demo account first.

Is there MT4 support?

Not yet. fxapis is built for MetaTrader 5 only today. If MT4 matters to your product, tell us — it helps us decide what comes next.

How fast is execution?

In our measurements an account takes about 10 seconds to come online after connecting, an order's round trip from our EU servers to a London broker's trade server is 96–110 ms, and in our benchmark against an instant broker one order placed on 100 accounts went out within 30 ms from the first account to the last — every multi-account order reports its own spread. Your broker and where its servers are make the biggest difference, so treat these as measurements, not guarantees.

Can I trade many accounts at once?

Yes. A multi-account order places one trade on every account you list, at the same moment, with its own volume per account if you want, and reports a separate result for each account. Accounts per order: Production up to 250, Business up to 1,000, Enterprise as many as agreed.

How do you store MT5 passwords?

Each password is encrypted on arrival with a key unique to that account. It is never returned by any endpoint, never shown in the console and never written to a log. It is used only to sign the account in at its broker, every use is audited, and it is erased as soon as you disconnect the account.

Is there a free plan?

Not at the moment. Plans start at $99 a month with 5 accounts included, then $5 per account, and you can upgrade or cancel from the console at any time.

Can my app's members approve trades one by one?

Yes — that is click-to-trade. Each member connects their own MT5 account in your app. When a member opens a signal, you bring their account online; when they tap approve, you place the order on their account with an idempotency key made from the signal and the member, so a double tap can never open two trades.

What happens if an order's result is unclear?

It is never guessed. If a send times out or the connection drops, the order is marked unknown and the API tells you not to resend it. We then confirm it against the broker's own records and move it to what actually happened — filled, partly filled or rejected.

Is there a sandbox or test mode?

Keys come labelled live or test so your configurations are easy to tell apart, but both reach real brokers. Build and test against your broker's demo accounts, then connect real-money accounts when you are ready.

> Connect. Execute. Scale.

Start building with fxapis today.

Create an account, issue an API key, and place your first trade in minutes.