Skip to main content

pymt5linux

Forked from lucas-campagna/mt5linux. This is a up-to-date version which incorporates recent MT5 software updates. It works with Python 3.13.

As an alternative to the setup below, you can also opt to run a Docker image of MT5 with x11/noVNC remote access. Check out mt5docker for details.

How To Use

  1. Install (as per MT5 Linux user guide):

  2. Install MetaTrader5 package inside your Wine Python installation.

pip install MetaTrader5
  1. Install pymt5linux package in both Wine and Linux Python versions.
pip install pymt5linux
  1. Establish the connection.
  • Open the MT5 terminal in Wine.

  • Run the MT5 server in Wine.

python -m pymt5linux <path/to/python.exe>,

or if you want to specify the host and port:

python -m pymt5linux --host localhost --port 8001 <path/to/python.exe>

  • Run your Linux script.
# import the package
from pymt5linux import MetaTrader5

# establish the connection
mt5 = MetaTrader5()

# or if you specified the host and port in the previous step:
mt5 = MetaTrader5(host="localhost", port=8001)
  1. Make sure you test with a DEMO account first, then have fun!

Most importantly, see MetaQuotes' official documentation.

Metadata

Release files for pymt5linux 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymt5linux 1.0
File Size Uploaded
pymt5linux-1.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymt5linux 1.0
File Interpreter ABI Platform
pymt5linux-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / pymt5linux-1.0.tar.gz

Download URL pymt5linux-1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
be1dd5a59317f9fef66983457e5afba4af09bf2a923a75b41456144a7f946e84
BLAKE2b-256 checksum
How to use checksums
5f07183184f10e326fe016c73f134edf3f106d26d8cc273547af7fd066297023
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / pymt5linux-1.0-py3-none-any.whl

Download URL pymt5linux-1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
619c82c4add4afc0d0ca051fe3b3bbb46a31f9b4e4a0cf06f6d782d3974598e2
BLAKE2b-256 checksum
How to use checksums
0a404abd61380e7edb94d260dfa2103aabb05859c4c3960a7bb114b1f238c376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page