How MTsocketAPI works?

MTsocketAPI is a lightweight Expert Advisor for MT4 / MT5 that listens on TCP port 81 to allow communication between your scripts / applications and your MT4 / MT5 accounts.

MTsocketAPI diagram
By default, the API listens:
  * TCP 81 (HTTP | websockets)
  * TCP 77 (Legacy. Previous versions)
  * TCP 78 (Legacy. Previous versions)

TCP 81 is enabled for communicate with the API to retrieve data:
  * Get current asset price
  * Execute new orders
  * Close orders
  * Get the trade history
  * Start streaming data using websockets
  * More...

Multiple clients can connect to TCP port 81 to begin receiving streaming data via websockets.
More Info...

MTsocketAPI - Basic Usage (Video)

Basic communication with the API using to understand how it works

First steps with MTsocketAPI (more info)
If the video quality is low, please click the gear icon and select 1080p quality

© Copyright 2020-2025. All Rights Reserved.

Created with Mobirise ‌

Web Site Maker