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. Trustpilot 4.0
EN
MEASURED TRADING UPTIME ↗

The MetaTrader API for MT4 & MT5, built for developers

Connect up to 50 trading accounts (more on request) through one REST & WebSocket API. Nothing to install, no MetaTrader running on your side, no Expert Advisors — just clean JSON over HTTPS, built to scale.

REST + WebSocketNo EA requiredPay per seatgRPC ready

    
● 200 Connected EU-hosted
100+ API endpoints 8,000+ broker servers MT4 + MT5 in one API Uptime measured live on our public status page AES-256-GCM encrypted credentials 🇩🇪 Engineered in Germany
// capabilities

Everything you need to build on MetaTrader.

We solved the MetaTrader integration problem so you don’t have to. Connect, execute, and stream data effortlessly — each capability has its own guide.

LIVE

WebSocket Streams

Subscribe to live quotes; positions with live profit, orders and executed trades are pushed on the same socket.

Explore → /v1/stream
Live quotes stream
EURUSD1.08451 1.08455
GBPUSD1.25302 1.25308
POSITIONSEURUSD BUY +$45.80
TRADE● IN EURUSD #5921

Trade Execution

Open, modify, and close market or pending orders programmatically.

Explore → /OrderSend
GET /OrderSend
?symbol=EURUSD&operation=Buy
&volume=0.1&clientOrderId=sig-7781
BUY 0.1TP 1.1000SL 1.0800✓ state 10009
NEW

Custom Expert Advisors

Upload a compiled EA and run it on our isolated, hosted infrastructure — no VPS.

Explore → /EaUpload
MyRobot.ex5 · EURUSD,H1● RUNNING
17:17:24 expert MyRobot loaded successfully
17:17:31 MyRobot: BUY 0.10 @ 1.16401
17:19:02 MyRobot: TP hit +$4.20
AutoTrading ONDLL imports OFF
NEW

Depth of Market & Ticks

MT5 Level 2 order book (where the broker publishes it) plus tick history with trade flags and real volume.

Explore → /MarketBookGet
EURUSD · depth of market
1.084662.95
1.084584.80
1.084501.51
1.08447spread 0.8
1.084392.66
1.084315.78
1.084231.65
NEW

Account Connection

Connect an MT4/MT5 login, usually in 1–2 minutes; watch state, reconnect and disconnect.

Explore → /ConnectEx
GET /ConnectEx?wait=60
Credentials accepted PENDING
Broker connection CONNECTING
Logging in to broker CONNECTING
Account synchronised ACTIVE
NEW

gRPC Interface

The same surface over Protocol Buffers — typed methods and server-streaming.

Explore → StreamQuotes
metatraderapi.proto
service MetaTraderApi {
  rpc GetQuote (SymbolReq) returns (Quote);
  rpc OrderSend (Order) returns (Result);
  // server-streaming
  rpc StreamQuotes (Symbols) returns (stream Quote);
}
// infrastructure

You build the app. We handle the bridge.

Your CRM, bot or web platform talks plain JSON to our engine — we maintain the broker connections for you.

THE OLD WAY

  • Keep the MetaTrader desktop app running on a VPS you maintain.
  • Write and install complex Expert Advisors (MQL).
  • High operational server cost & maintenance.

METATRADER API

  • Pure REST & WebSocket — standard JSON over HTTPS.
  • No EAs, no MetaTrader to install — we run the connections for you.
  • Pay per seat (one connected account each) — cheaper as you grow, uptime measured live on our status page.
// pricing

Simple, per-seat pricing.

From €12 per seat per month. Pay per connected account, billed monthly. Add or release seats anytime — the price per seat drops as you grow.

Per-seat plan

€12 /seat per month
  • 1× MT4 or MT5 account per seat
  • REST + WebSocket streaming
  • 20 requests/second per API key
  • Mix MT4 and MT5 seats
  • Disconnect & reconnect accounts at no extra charge
  • Management keys to connect accounts from your backend
Create account
Price per seat
SeatsPer seat / month
1–5€12
6–45€11.50
46–250€8
251+€7
Private hosting€16

Graduated: each seat is billed at the price of its band. Per billing month, EUR, excl. VAT. Prices exclude VAT/sales tax, which is added at checkout where it applies. Payments are processed by Stripe (Link) as merchant of record. A billing month is 28 days, paid in advance. Cancel any time; cancellation takes effect at the end of the billing month. Payments are non-refundable (Terms of Service).

What your seats cost
€117.50
10 seats · €11.75 per seat on average
Buy now

Private hosting (your own server and dedicated IP address in your broker’s city): €16 per seat per month, flat.

Graduated pricing: each price applies to the seats in its range (50 seats = €560 / month). Prices in EUR, excl. VAT. Prices exclude VAT/sales tax, which is added at checkout where it applies. Payments are processed by Stripe (Link) as merchant of record. Every seat is charged a full billing month, upfront. Payment by card through Stripe, as a subscription.

// questions

Frequently asked questions

What is a MetaTrader API?+
It’s an API layer that makes MT4 and MT5 trading accounts accessible over REST and WebSocket — so your apps can retrieve account data and control trades without running MetaTrader yourself and without Expert Advisors.
Is this an MT4 API or MT5 API?+
Both. Each seat connects one MT4 or one MT5 account, and you can mix MT4 and MT5 seats on the same subscription.
Do I need MetaTrader running or an EA?+
No. MetaTrader API eliminates that requirement. All you need is an API key — no MetaTrader installation, no EA deployment.
Do you offer a WebSocket / streaming API?+
Yes. WebSocket streaming is included: live quotes, plus positions with live profit, orders and executed trades on the same socket. A typed gRPC interface is available too.
How do I get an MT4 / MT5 API key?+
Connect the account in the dashboard, then click “Generate key” on the account’s card: the key (mt5api_…) is shown once. Send it in the x-api-key header, with the account’s UUID as ?id=. Settings holds the management key (mt5mgmt_…) for connecting accounts from your backend.
Is this the official MetaQuotes Manager or Server API?+
No. MetaTrader API is an independent service and is not affiliated with, authorized by, or endorsed by MetaQuotes. MetaQuotes offers no official public API for retail trading accounts; its Manager and Server APIs are licensed to brokers only.
What does it cost and how do I pay?+
Each seat is billed monthly, upfront, at graduated prices: €12 for seats 1–5, €11.50 for seats 6–45, €8 for seats 46–250 and €7 from the 251st seat (10 seats = €117.50 / month). Private hosting with a dedicated IP and a fixed device is €16 per seat, flat. Prices are in EUR, excl. VAT. Prices exclude VAT/sales tax, which is added at checkout where it applies. Payments are processed by Stripe (Link) as merchant of record. Existing subscribers keep their current USD prices. Payment is by card through Stripe, as a subscription. See our Terms and Fair Usage Policy.
Ready to build on MetaTrader?

Ship your integration this afternoon.

Connect an account, grab your key, and make your first call in minutes — REST, WebSocket or gRPC.