Low Latency Metatrader API

MTsocketAPI is a fully supported solution designed to enable developers to quickly integrate market data, order entry, and post-trade data into trading and application frameworks.

Features

Prices
Real-time tick data and OHLC data are available for integration into your custom application. You can create your own indicators using your preferred programming language.

Orders
You can send market, limit, or stop orders to your MT4/MT5 account from your custom script or application. You can also manage or close your opened orders.

Indicators
Access data from any MT4/5 indicators, such as SMA, ATR, Momentum, or any custom indicators and use this information to manage the orders.

History
You will have full control of your Metatrader data, including the ability to retrieve past trades, use filters, make calculations, export the trade history to CSV, and more.

Trade on MT4 or MT5
locally or remotely

MTsocketAPI enables users to remotely connect to their MT4/MT5 terminals and manage their accounts from a remote location. It can be used to develop complex trading systems on Linux computers and send orders to computers allocated on a VPS using standard technologies like RESTAPI and JSON.

MTsocketAPI

API beneficts
MTsocketAPI - Privacy
Privacy

It is advisable to maintain your trading infrastructure on premise on your computers or servers. Please note that utilizing third-party API cloud services may result in additional latency and confidentiality issues.

MTsocketAPI - Ultra Fast API
Ultra fast API

Our new API is designed for optimal performance and efficiency. It is lightweight and latency-free, allowing you to trade in the markets with unparalleled speed and reliability.

MTsocketAPI - Easy
Easy

Our API is intuitive and built on standard technologies, allowing you to focus on trading without needing to learn MQL. You can use your preferred programming language for debugging your applications or scripts.

MTsocketAPI - Unlimited Possibilities
Unlimited possibilities

Connect your strategies or applications to multiple brokers or accounts for arbitrage, hedging, copy trading, and other financial operations. Our API offers limitless possibilities for your business.

OpenAPI 3 compatible

MTsocketAPI uses standard programming languages like RESTAPI and JSON.
It can be accessed from any network system (Windows, Linux, Android, iOS…) using any programming language (Java, Python, C#, Go, R, PowerShell, MATLAB...)

Learn More >

Basic Usage (Video)

Basic usage video

First steps with MTsocketAPI

You will see in this video:

1. How to use the API.
2. How to get API data.
3. How to open and close orders.


Export calendar data from MT5 to CSV (Video)

Export calendar data using PowerShell

Basic example using PowerShell

You will see in this video:

1. How to get the calendar data from MT5.
2. How to save the data in a csv file.
3. How to open the file with a spreadsheet editor.


Get realtime prices using Websockets (Video)

Stream prices video

Basic example using Websockets with Javascript 

You will see in this video:

1. How to create a simple HTML page using Javascript.
2. Start streaming prices.
3. Display the prices on the HTML page.


Full Examples with source code

Python Examples
Java Examples
CSharp Examples
C++ Examples
NodeJS Examples
PowerShell Examples
Go Examples
R Examples

© Copyright 2020-2025. All Rights Reserved.

Created with Mobirise ‌

Web Site Maker