API for Metatrader 4 & 5
Connect and control your MT4 & MT5 trading accounts via a single REST API + WebSocket layer. Live market data, trade execution, account management — without a running terminal or Expert Advisors.
# Get live account summary via MetaTrader REST API
curl -X GET "https://api.metatraderapi.dev/AccountSummary?id=ACCOUNT_UUID" \
-H "x-api-key: YOUR_API_KEY"
# WebSocket stream for live quotes
const ws = new WebSocket('wss://api.metatraderapi.dev/stream');
ws.onmessage = (event) => JSON.parse(event.data);Single plan: API key auth · Pro plan: Dedicated base URL + Basic Auth
47ms
Avg. Execution
10,000+
Connected Accounts
11
Global Data Centers
196
Countries Served
99.95%
Uptime SLA
Used by developers building on MT4 & MT5
Everything You Need
Build trading software on MT4 & MT5
API2Trade solves the MetaTrader integration problem as an infrastructure layer. You build the CRM, bot, or platform — we handle the bridge and execution layer.
Account Management
MetaTrader API / MT4 API / MT5 API
Retrieve live account data — balance, equity, margin, and free margin. Access full account details and order/trade history via REST API.
Trade Execution & Order Management
metatrader rest api / mt4 api / mt5 api
Open, modify, and close market or pending orders programmatically. Full MT4 & MT5 order lifecycle management via REST endpoints.
WebSocket Streams
metatrader web api / mt4 web api / mt5 web api
Subscribe to live quotes, order updates, and account equity changes in real-time. Low-latency streaming with 47ms average response.
No EA / No Terminal Required
No terminal needed · No EAs
Replace terminal-based EA integrations with standard HTTPS JSON requests and WebSocket streams. Plug and play — no MetaTrader installation on your server.
Built for Scale
Unlimited accounts · Unlimited requests
Flat monthly pricing with unlimited accounts and API requests on Pro plans. From a single script to production systems managing thousands of accounts.
Security & Privacy by Design
256-bit encryption · GDPR compliant
All communications use 256-bit encryption. GDPR-compliant and private by default — we do not access, see, or store your trading data.
Architecture
How API2Trade Works
API2Trade delivers a direct MetaTrader API access layer as REST + WebSocket, so you can manage accounts and execute trades programmatically — without a running terminal, without EAs.
Your App sends a REST request
Any language, any framework — standard HTTPS with JSON.
API2Trade bridges to MT4/MT5
Our infrastructure layer across 11 global data centers handles the connection.
You receive real-time results
47ms average execution. WebSocket for streaming. No polling required.
47ms
Latency
15M+
Requests/day
256-bit
Encryption
Security & Compliance
Your Data. Your Control.
API2Trade provides the infrastructure — you retain full control. We operate as a transparent bridge layer, not a custodian of your trading data.
256-bit Encryption
All communication and storage uses 256-bit encryption as standard.
GDPR Compliant by Design
Privacy by default, compliant by design. Your trading data stays private.
ISO 27001 Certified
Enterprise-grade security certification covering our infrastructure.
Private by Default
We do not access, see, or store your trading data. Ever.
Use Cases
Built for Developers
From solo quant traders to enterprise trading firms — API2Trade powers the tools that power the market.




Algorithmic Trading Bots
Build and deploy fully automated trading strategies that execute MT4 & MT5 orders via REST API — no terminal running required.
CRM & Client Portals
Embed live account balances, equity curves, and trade history directly into your client-facing dashboard via WebSocket streams.
Multi-Account Management
Manage thousands of MT4/MT5 accounts from a single API endpoint. Unlimited accounts on Pro plans — flat monthly pricing.
Risk Management Systems
Monitor live margin, equity and drawdown across all accounts in real-time. Trigger automated risk actions via the trading API.
Testimonials
What traders & developers say
Managing multiple portfolios has never been easier. This MetaTrader API saves me hours every week.
"Financial Advisor
Pricing
Simple, transparent pricing
Flat monthly fees for MT4 & MT5 API access. Upgrade anytime.
Single Account
€
Single PROPopular
€
Full Pro (MT4&5)
€
Secure payment via Stripe. Cancel anytime.
FAQ
Frequently Asked Questions
Ready to build with the MetaTrader API?
Setup under 30 minutes.
[email protected] · 24/7 Multilingual Support · Telegram Available