Markets and trading · Independent · 23 Oct 2026

Ichinga-Samuel/aiomql

Asynchronous Python Library For MetaTrader 5

← Markets and trading
aiomql: Python trading framework. Build and run automated trading bots on MetaTrader 5.

In simple English

This library lets you write trading robots in Python for the MetaTrader 5 platform. It handles connection drops, order placement, and risk rules in the background. You write the strategy logic and the tool runs it across multiple currencies at once. It runs on Windows because MetaTrader requires a Windows environment to operate. It is free to use under an open source licence.

What it is

aiomql is an asynchronous Python framework wrapping the MetaTrader 5 trading platform API. It provides a base class for trading strategies, built-in risk management, session time windows, and position tracking.

What it is good for

Solo developers and traders who want to automate forex or crypto strategies in Python without writing repetitive boilerplate code for order execution and error handling.

Stars153
LicenceMIT
Latestv4.0.13 (2025-06-07)checked 23 Oct 2026
Last code change2026-07-26
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Wraps MetaTrader 5 functions with async-friendly interfaces and automatic reconnection.
  • Includes risk management, session time restrictions, and SQLite trade logging.
  • Supports running multiple strategies on different instruments concurrently.
Watch for
  • Requires a running Windows environment because MetaTrader 5 desktop is Windows-only.
  • Requires a funded broker account supporting MetaTrader 5 to test live strategies.
  • Requires solid Python knowledge to write and debug custom trading strategies.
Replaces

Writing manual MetaTrader 5 integration scripts from scratch

Works well with

pandas

Similar repositories
  • ranaroussi/yfinance26k stars

    Downloads market history data for analysis without connecting to a broker terminal.

Also reviewed on Repo Radar
  • jesse-ai/jesse8.7k stars

    A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.

  • hummingbot/hummingbot20k stars

    A free framework for writing and running automated trading programs on cryptocurrency exchanges.

  • lballabio/QuantLib7.7k stars

    The long-established free library for pricing and risk-managing financial instruments.

Install
pip install aiomql

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Trading & Investing › Trading Automation › Expert Advisor Builders.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.