MetaTrader5 for linux users
Project description
MetaTrader 5 for Linux
A package that uses Wine, RPyC, and a Python Windows version to run MetaTrader5 on Linux.
For an explanation of who should use mt5linux and why, see Motivation and Use Cases.
Installation
-
Install Wine.
-
Install Python for Windows on Linux using Wine.
-
Find the path to
python.exe(e.g.,/home/user/.wine/drive_c/users/user/Local Settings/Application Data/Programs/Python/Python39). -
Install the MetaTrader5 library on your Windows Python:
pip install MetaTrader5
-
Install this package on both Windows and Linux Python:
pip install mt5linux
Docker
Alternatively, you can run this library using Docker, see the docs.
Usage
-
Open MetaTrader5.
-
Start the server:
-
Windows (native):
python -m mt5linux
-
Linux (with Wine):
wine python -m mt5linux
The server accepts various options. View them with:
python -m mt5linux --help
-
-
On the Linux side, use the library as usual:
from mt5linux import MetaTrader5 mt5 = MetaTrader5() mt5.initialize() mt5.terminal_info() mt5.shutdown()
For full API documentation, see the official MetaTrader5 Python integration.
Thanks
- hpdeandrade for many improvements and insights about docker.
- ananta-dev for project motivation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mt5linux-1.0.3.tar.gz.
File metadata
- Download URL: mt5linux-1.0.3.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
825ceeb532e9d227bd46fadf2cc2d410be7e5585db11fe5eed9c4315b80e6246
|
|
| MD5 |
2fefc0c52742adc9a67e3b436ece1b2d
|
|
| BLAKE2b-256 |
7c5cd27d887677d20213069ce6c5e50262efc908f04d0fb59351f74ea235fc4e
|
File details
Details for the file mt5linux-1.0.3-py3-none-any.whl.
File metadata
- Download URL: mt5linux-1.0.3-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
345715427dfd31f0c0867053c28782054f3d8ee90616d1719d7c3ddb6fc54c9e
|
|
| MD5 |
89d0f0b40c55f894d7aeeaaa9eedca19
|
|
| BLAKE2b-256 |
880dba9a9defca90d6c59b30c32e2a29b12568221d3377461735d43070de7d79
|