

mt5_api
Cross-platform Python-MT5 socket bridge for algorithmic trading. Run MetaTrader 5 trading bots from Linux or Mac without Windows dependency.
Cost / License
- Free
- Open Source (MIT)
Platforms
- Mac
- Linux
- Windows

mt5_api
Features
- Bots
- Algorithmic trading
- Sockets
- Forex
Tags
- windows
- Automation
- MacOs
- Trading
- Python
- self-hosted-apps
- Linux
- metatrader
- Api
- finances
- Cryptocurrency
mt5_api News & Activities
Recent activities
mt5_api information
What is mt5_api?
MT5 Python Bridge is an open-source socket-based bridge that enables Python applications on Linux/Mac to communicate with MetaTrader 5 running on Windows.
Unlike the official MetaTrader5 Python package which only works on Windows, this bridge uses TCP/IP sockets to allow cross-platform algorithmic trading.
Key Features: • Execute market orders (buy/sell) and pending orders (limit/stop) • Get real-time tick data (bid/ask prices) •Retrieve historical OHLC candle data • Manage positions (open, close, modify SL/TP) • Account information (balance, equity, margin) • Built-in GUI trading panel with keyboard shortcuts • Latency benchmarking tools • Trailing stop functionality
Architecture: Python runs as a TCP server on Linux/Mac, while the MT5 Expert Advisor connects as a client from Windows (or Windows VM). Communication uses JSON messages over socket.
Perfect for: • Traders developing bots on Linux/Mac • Running MT5 strategies on cloud servers • Integrating MT5 with Python data science tools (pandas, numpy) • Building custom trading interfaces
Open source under MIT license.