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.

terminal
# 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

Stripe
AWS
Cloudflare
React
▲ Vercel
Python
Node.js
Docker
Stripe
AWS
Cloudflare
React
▲ Vercel
Python
Node.js
Docker

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.

RESTJSONReal-time

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.

Market OrdersPending OrdersSL/TP

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.

Live QuotesOrder UpdatesEquity Feed

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.

No DependenciesStandard HTTPInstant Setup

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.

Unlimited AccountsFlat PricingDedicated Server

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.

ISO 27001GDPRPrivate by Default

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.

1

Your App sends a REST request

Any language, any framework — standard HTTPS with JSON.

2

API2Trade bridges to MT4/MT5

Our infrastructure layer across 11 global data centers handles the connection.

3

You receive real-time results

47ms average execution. WebSocket for streaming. No polling required.

API Architecture
Live
API2T

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.

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

12/month

Single PROPopular

549/month

Full Pro (MT4&5)

949/month

Get Started

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