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
99.95% API UPTIME — ALL SYSTEMS GO

The MetaTrader API for MT4 & MT5, built for algo bots.

Manage unlimited trading accounts* through a single REST & WebSocket API. No terminal required, no Expert Advisors to install — just clean JSON over HTTPS, built to scale.

REST + WebSocketNo EA requiredUnlimited accounts*gRPC ready
47ms avg execution 10,000+ active accounts 11 global data centers Clients from 196 countries 256-bit security 🇩🇪 Made 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, order updates and account equity changes in real time.

Explore → /v1/stream
Live quotes stream
EURUSD1.08451 1.08455
GBPUSD1.25302 1.25308
ACCOUNT EQUITY$15,245.80
ORDER UPDATES● ORDER_FILLED #5921

Trade Execution

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

Explore → /OrderSend
POST /Trade
{ "actionType":"ORDER_TYPE_BUY",
  "symbol":"EURUSD", "volume": 0.1 }
BUY 0.1TP 1.1000SL 1.0800✓ 47ms
NEW

Custom Expert Advisors

Upload a compiled EA and run it on a hosted, sandboxed terminal — 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

Full Level 2 order book plus tick-by-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 any MT4/MT5 login in ~30 seconds; watch state, reconnect and disconnect.

Explore → /ConnectEx
POST /ConnectEx
Credentials accepted queued
Terminal booting spawning
Logging in to broker handshake
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 run the complex MetaTrader terminal layer against the broker.

THE OLD WAY

  • Run the MetaTrader desktop terminal 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 terminal to install — we host the infrastructure.
  • Manage unlimited accounts* on a 99.95% SLA.
// pricing

Simple, scalable pricing.

Flat monthly fees for MT4 & MT5 API access. Upgrade anytime.

Single Account

$14 /month
1× MT4 or MT5 connection · individuals & startups
  • No rate limits
  • Seat-based billing
  • WebSocket support
  • Volume discounts from 5 seats
Get Started
MOST POPULAR

Single PRO

$599 /month
Either MT4 or MT5 · billed annually
  • Unlimited accounts* & requests
  • Real-time market data
  • Dedicated cloud server
  • 24/7 priority support
Get Started

Full Pro (MT4 + MT5)

$999 /month
MT4 and MT5 included · best value
  • MT4 and MT5 combined
  • Unlimited accounts* & requests
  • WebSocket & gRPC support
  • 24/7 priority support
Get Started

Checkout via Stripe, Crypto, or Bank Transfer. Fair-usage applies to unlimited plans — see our Fair Usage Policy.

// 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 a running terminal and without Expert Advisors.
Is this an MT4 API or MT5 API?+
Both. Plans are available for MT4 or MT5 separately, and the Full Pro plan includes MT4 + MT5 combined.
Do I need a running MetaTrader terminal or EA?+
No. MetaTrader API eliminates that requirement. All you need is an API key — no terminal install, no EA deployment. We host the terminal layer for you.
Do you offer a WebSocket / streaming API?+
Yes. WebSocket streaming is included for live quotes, order updates and account equity changes in real time. A typed gRPC interface is available too.
How do I get an MT4 / MT5 API key?+
On the Single Account plan, your API key is in the dashboard under Settings. Requests are authenticated with the x-api-key header plus a per-account UUID.
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. There is no official public API from MetaQuotes.
What are the fair-usage and payment terms?+
Unlimited plans are subject to our Fair Usage Policy. We accept Stripe (card), Crypto and Bank Transfer.
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.