{"id":24080,"library":"mt5linux","title":"mt5linux","description":"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.","status":"active","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/lucas-campagna/mt5linux","tags":["metatrader5","forex","trading","mt5","linux"],"install":[{"cmd":"pip install mt5linux","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Optional on client side (server side only), but required if running the mt5linux server where MT5 is installed (Windows).","package":"MetaTrader5","optional":true}],"imports":[{"wrong":"from mt5linux import Mt5Linux","symbol":"MetaTrader5","correct":"from mt5linux import MetaTrader5"}],"quickstart":{"code":"from mt5linux import Mt5Linux\n\n# Connect to already running mt5linux server (default host/port)\nmt5 = Mt5Linux('localhost', 5050)\n\n# Check connection\nprint('Connected:', mt5.connected)\n\n# Get account info\naccount_info = mt5.account_info()\nprint('Account:', account_info)\n\n# Get symbol tick (adjust symbol and server settings as needed)\n# tick = mt5.get_symbol_tick('EURUSD')","lang":"python","description":"Connect to an existing mt5linux server and fetch account info."},"warnings":[{"fix":"Install and launch the mt5linux server on a Windows machine with MT5. Then connect from your Linux client.","message":"mt5linux 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to the mt5linux README or source code for available client methods.","message":"Many 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider forking or using alternatives (e.g., MT5 via Wine + pywinauto or the official MetaTrader5 package if on Windows).","message":"The library is not actively maintained. The last commit on GitHub was in 2022. Issues and pull requests may go unanswered.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.3':37 'account':20 'api':9 'architectur':15 'cadenc':46 'cannot':33 'client':14 'data':23 'e.g':19 'enabl':16 'forex':48 'info':21 'instal':35 'librari':4 'light':41 'linux':26,51 'maintain':42 'major':44 'market':22 'metatrader5':8,17,31,47 'mt5':50 'mt5linux':1 'offici':30 'oper':18 'order':24 'packag':32 'python':3 'releas':45 'server':13 'server-cli':12 'stabl':39 'system':27 'trade':49 'use':10 'version':36 'wrap':6","created_at":"2026-05-01T08:11:11.364800+00:00","updated_at":"2026-05-01T08:11:11.364800+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/lucas-campagna/mt5linux","docs":null,"changelog":null,"pypi":"https://pypi.org/project/mt5linux/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}