MetaTrader5 for Linux
Project description
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
-
Install (as per MT5 Linux user guide):
- Wine in your Linux machine.
- Python for Windows inside Wine.
- MT5 software inside Wine.
-
Install MetaTrader5 package inside your Wine Python installation.
pip install MetaTrader5
- Install pymt5linux package in both Wine and Linux Python versions.
pip install pymt5linux
- 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)
- Make sure you test with a DEMO account first, then have fun!
Most importantly, see MetaQuotes' official documentation.
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 pymt5linux-1.0.tar.gz.
File metadata
- Download URL: pymt5linux-1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be1dd5a59317f9fef66983457e5afba4af09bf2a923a75b41456144a7f946e84
|
|
| MD5 |
5c5cbf8429f51eaa05cb33d9658333fe
|
|
| BLAKE2b-256 |
5f07183184f10e326fe016c73f134edf3f106d26d8cc273547af7fd066297023
|
File details
Details for the file pymt5linux-1.0-py3-none-any.whl.
File metadata
- Download URL: pymt5linux-1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619c82c4add4afc0d0ca051fe3b3bbb46a31f9b4e4a0cf06f6d782d3974598e2
|
|
| MD5 |
191968e6855030390aee092b8170f5e3
|
|
| BLAKE2b-256 |
0a404abd61380e7edb94d260dfa2103aabb05859c4c3960a7bb114b1f238c376
|