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 algo bots

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.

One per-seat plan. Pay per connected account, billed monthly. Add or release seats anytime — the price per seat drops as you grow.

Seats 1–4

$14 /seat per month
Start with one API seat · businesses & startups
  • 1× MT4 or MT5 account per seat
  • REST + WebSocket streaming
  • 20 requests/second per API key
  • Disconnect & reconnect accounts at no extra charge
Create account
VOLUME

Seats 5–19

$13 /seat per month
From your 5th seat · applied automatically
  • Everything in seats 1–4
  • Mix MT4 and MT5 seats
  • Copy trading, signals & bots (on any seat)
  • Example: 10 seats = $134 / month
Create account

Seats 20+

$12 /seat per month
From your 20th seat · platforms & fleets
  • Everything in seats 1–4
  • Management keys for platform integrators (on any seat)
  • Example: 50 seats = $623 / month
  • More than 50 seats: on request via support
Create account

Graduated pricing: each price applies to the seats in its range. 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: $14 for seats 1–4, $13 for seats 5–19 and $12 from the 20th seat. 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.