API for Every MetaTrader operation

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 }

STATUS ● LIVEREGION EU-CENTRALP50 31MSP99 94MS

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

Pepperstone
FxPro
Oanda
FXTM
AvaTrade
FBS
Tickmill
Pepperstone
FxPro
Oanda
FXTM
AvaTrade
FBS
Tickmill

+ many more

+ many more

Real-time MetaTrader connection, any stack

Drop the API into any backend in minutes - no EAs needed

TradingLayer API Keys dashboard connected in real time to a mobile app

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

1

REST request

Any language, any framework. Authenticate with a Bearer token and call any endpoint.

2

TradingLayer bridges to MT

Persistent, encrypted connections - no EAs, no MQL, no broken VPS.

3

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

TradingLayer API

Managed, secure, multi-region MT infrastructure.

✓

Runs on

Any OS · cloud API · no install

✓

Maintenance burden

Managed for you

✓

Languages supported

REST + Node, Python, Go, PHP

✓

MT4 + MT5 support

Single API, both versions

✓

Latency optimization

Sub-100ms p99, multi-region

✓

Webhooks & event streaming

Built-in, HMAC-signed

✓

Support

Engineers on Telegram + SLAs

Expert Advisors

MQL scripts running inside MT terminals on a VPS.

✕

Runs on

Windows only · laptop or VPS required

✕

Maintenance burden

Constant MT updates break EAs

✕

Languages supported

MQL only

!

MT4 + MT5 support

Separate EAs per platform

!

Latency optimization

VPS-dependent, variable

✕

Webhooks & event streaming

Roll your own from logs

!

Support

Forums and Stack Overflow

Build It Yourself

Custom MT bridge, infra, retries, monitoring — all yours.

✓

Runs on

Whatever you build

✕

Maintenance burden

100% on your team

✓

Languages supported

Whatever you build

!

MT4 + MT5 support

Two custom bridges

!

Latency optimization

Whatever you build

✕

Webhooks & event streaming

Build, deploy, scale yourself

✕

Support

Just your team

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.

TLS 1.3Forward SecrecyAES-256
⛨

Authentication & Scopes

Bearer-token API keys with per-account scopes, IP allowlists, and rotation. Webhook signatures for every event.

API KeysPer-account ScopesIP AllowlistHMAC Webhooks

Let's build your project with the Trading Layer API

Or message us in Telegram