New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pymt5linux

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pymt5linux

MetaTrader5 for Linux

pipPyPI
Version
1.0
Maintainers
1

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

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts