Build Trading Products on Top of MetaTrader
Forget Expert Advisors. TradingLayer API connects MetaTrader accounts directly into your application with secure, low-latency infrastructure — built for prop firms, copy trading platforms, brokers, and trading apps.
place-trade.sh
copy
# Place a market order on MT5
curl -X POST https://api.trading-layer.com/v1/orders \
-H "Authorization: Bearer $TL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account_id": "mt5_8423901",
"symbol": "EURUSD", "side": "buy",
"volume": 0.10, "sl": 1.0820, "tp": 1.0950
}'
# Response · 47ms
{ "order_id": "ord_a82b1", "status": "filled", "price": 1.0894 }
API for Every MetaTrader operation
Trade Execution
- ✓Open, modify, and close market & pending orders
- ✓Stop-loss, take-profit, trailing stops
- ✓Real-time fill confirmations & rejection reasons
Terminal Data Access
- ✓Live balance, equity, free margin, P&L
- ✓Open positions and pending orders
- ✓Account-level statistics and risk metrics
Trading History
- ✓Full historical trade & deal records
- ✓Filter by symbol, date, account, magic number
- ✓Built-in performance and drawdown stats
Multi-Account Infrastructure
- ✓Connect unlimited MT4 and MT5 accounts
- ✓Encrypted, isolated bridges per terminal
- ✓Horizontal scaling — thousands of accounts
Build anything that needs
MetaTrader account
From your own copy trading apps to compliance dashboards - connect users' MetaTrader accounts to your product using the TradingLayer API
Copy Trading Platforms
Social Trading Apps
Trading Dashboards
Prop Firm Infrastructure
Trading Journals
Automated Systems
Portfolio Trackers
Broker Integrations
Works with every MetaTrader broker
If your users' accounts run on MetaTrader, they can run on TradingLayer





























+ many more









+ many more
Real-time MetaTrader connection, any stack
Drop the API into any backend in minutes - no EAs needed

How TradingLayer API Works
TradingLayer API delivers a direct MetaTrader access layer as REST + WebSocket - so you can manage accounts and execute trades programmatically, without a running terminal, without EAs
REST request
Any language, any framework. Authenticate with a Bearer token and call any endpoint.
TradingLayer bridges to MT
Persistent, encrypted connections - no EAs, no MQL, no broken VPS.
You receive real-time results
Order fills, account state, and trade events stream back over REST and WebSocket.
Your Products
Copy Trading App
Frontend · React
Trading Dashboard
Node.js · Express
Prop Firm Platform
Python · FastAPI
Trading Journal
Go · gRPC

TradingLayer API
MetaTrader Terminals
MT5 · ICMarkets
Live · Frankfurt
MT5 · Pepperstone
Live · London
MT4 · Exness
Live · Virginia
MT5 · FxPro
Live · Singapore
Build vs Subscribe?
Most teams build their own MetaTrader bridge or stitch together Expert Advisors - and burn months on infra that never quite works. Here's what you'd do yourself, vs. what we already shipped
Swipe to compare →
Built for Secure Connection
Every connection between your application and a MetaTrader terminal is isolated and encrypted
Encrypted Communication
End-to-end TLS 1.3 between every client, the API edge, and the MetaTrader bridge. No credentials in transit.
Authentication & Scopes
Bearer-token API keys with per-account scopes, IP allowlists, and rotation. Webhook signatures for every event.
