MT5 WebSocket API

MT5 API for real-time trading over WebSocket

MT5 Connect is an MT5 API from M5FX. It keeps a live, two-way WebSocket connection to MetaTrader 5 for high-speed execution, streaming data and automated trading.

MT5 ConnectSample data
WebSocket connected
↑ Sent
{
  "action": "order.place",
  "symbol": "EURUSD",
  "side": "buy",
  "volume": 0.10
}
↓ Received
{
  "event": "order.filled",
  "ticket": 50231874,
  "price": 1.09145
}

What you can do

MT5 Connect features

Live WebSocket connection

Keep a persistent, two-way connection open instead of sending repeated requests, optimised for low latency.

Streaming real-time data

Receive real-time MT5 data as it updates in your own tools, dashboards and trading systems.

High-speed trade execution

Send trades to MT5 over the open connection and receive updates on the same channel.

Automated trading

Build reliable, efficient automated trading workflows on top of the WebSocket API.

Pricing

MT5 Connect pricing

Onboarding for your first account
Free
One-time onboarding fee per new account
$2
Per running hour, billed monthly
$0.00998
Free for the first month

MT5 API questions

MT5 Connect FAQ

What is MT5 Connect?

MT5 Connect is an MT5 API (MetaTrader 5 API) from M5FX. It connects your own tools and trading systems to MT5 over a live WebSocket connection for trade execution, real-time data and automated trading.

Is MT5 Connect a WebSocket API?

Yes. MT5 Connect is an MT5 WebSocket API. It keeps a persistent, two-way connection open, so your system does not need to send repeated requests, and you can send trades and receive updates on the same connection.

What can I build with this MT5 API?

You can use MT5 Connect to send trades to MT5, stream real-time MT5 data into your own tools and dashboards, and build automated trading workflows.

How much does MT5 Connect cost?

Onboarding is free for your first account, and each new account has a one-time $2 onboarding fee. Running time costs $0.00998 per hour, billed monthly, and the hourly charge is free for the first month.

How do I get started with MT5 Connect?

Create an M5FX account at app.m5fx.com/signup. If you have questions first, contact the M5FX team at support@m5fx.com.

MetaTrader and MT5 are trademarks of their respective owner.

Get started with MT5 Connect

Create your account, or contact our team with any questions about the platform.