Skip to main content

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

  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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymt5linux-1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymt5linux-1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for pymt5linux-1.0.tar.gz
Algorithm Hash digest
SHA256 be1dd5a59317f9fef66983457e5afba4af09bf2a923a75b41456144a7f946e84
MD5 5c5cbf8429f51eaa05cb33d9658333fe
BLAKE2b-256 5f07183184f10e326fe016c73f134edf3f106d26d8cc273547af7fd066297023

See more details on using hashes here.

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

Hashes for pymt5linux-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 619c82c4add4afc0d0ca051fe3b3bbb46a31f9b4e4a0cf06f6d782d3974598e2
MD5 191968e6855030390aee092b8170f5e3
BLAKE2b-256 0a404abd61380e7edb94d260dfa2103aabb05859c4c3960a7bb114b1f238c376

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page