Registry / database / mt5linux

mt5linux

JSON →
library1.0.3pypypi✓ verified 79d ago

A Python library that wraps the MetaTrader5 API using a server-client architecture, enabling MetaTrader5 operations (e.g., account info, market data, orders) on Linux systems where the official MetaTrader5 package cannot be installed. Version 1.0.3 is stable but lightly maintained; no major release cadence.

pip install mt5linux
INSTALL
IMPORT
SIG · MT5LINUX
M
mt5linux
databasepythonv1.0.3
Install
3.9s avg
Import
Disk
92MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 92.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 88MB
92MB installed
● package 92MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MetaTrader5
from mt5linux import MetaTrader5
from mt5linux import Mt5Linux

Connect to an existing mt5linux server and fetch account info.

from mt5linux import Mt5Linux # Connect to already running mt5linux server (default host/port) mt5 = Mt5Linux('localhost', 5050) # Check connection print('Connected:', mt5.connected) # Get account info account_info = mt5.account_info() print('Account:', account_info) # Get symbol tick (adjust symbol and server settings as needed) # tick = mt5.get_symbol_tick('EURUSD')
Debug
Known issues
gotchamt5linux is a CLIENT library only. You MUST run the separate mt5linux server application (Windows-only) that has MetaTrader5 installed. The client (on Linux/Mac) simply send requests to that Windows server via TCP sockets.
fix
Install and launch the mt5linux server on a Windows machine with MT5. Then connect from your Linux client.
affects: all
gotchaMany mt5linux methods mimic MetaTrader5 API but with different naming (e.g., account_info instead of account_info()), and results are dictionaries, not namedtuples. Do not use MetaTrader5 documentation for exact function signatures.
fix
Refer to the mt5linux README or source code for available client methods.
affects: all
deprecatedThe library is not actively maintained. The last commit on GitHub was in 2022. Issues and pull requests may go unanswered.
fix
Consider forking or using alternatives (e.g., MT5 via Wine + pywinauto or the official MetaTrader5 package if on Windows).
affects: >=1.0.0
Upgrade
Version history
1.0.3latest on PyPI · released Feb 20, 2026
Audit
Dependencies
MetaTrader5optionalOptional on client side (server side only), but required if running the mt5linux server where MT5 is installed (Windows).
Agent activity
41 hits · last 30 days
node
40
Resources
mt5linux — pip install mt5linux · libregistry