Mt5api

MetaTrader 5 REST API built with FastAPI.

  • Development
  • Tools & Utilities
MetaTrader 5 REST API built with FastAPI. mt5api exposes MT5 market data, account information, trading history, order validation, and terminal operations over HTTP, with API-key authentication and OpenAPI documentation. It is aimed at developers and traders who want to integrate MetaTrader 5 into automated trading or analytics pipelines. Note the server must run on Windows because the underlying client connects through the MetaTrader 5 terminal; live order submission is disabled by default and requires explicit environment configuration.

Platform availability

Available on 0 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

62/100 Good

Maintained
100last commit 5 days ago
Popular
198 GitHub stars
Easy to install
100 install platforms, Docker image
Light to run
502 GB minimum RAM
Security check
100no serious findings, CI, tests
GitHub stars
8
Open issues
2
Last commit
2026-11-20
Latest release
v2.0.1
License
MIT
Activity
rising

Checked 5 days ago - source: GitHub (dceoy/mt5api)

Resources & Compatibility

Minimum requirements: 2 GB RAM, 2 CPU core(s), 10 GB disk. ARM (e.g. Raspberry Pi) is not supported.

Checked 58 days ago - source: Docker Hub image tags and published docs

First-install notes

No first-install notes yet.

Alternatives

No alternatives collected yet.

Common questions

Does the MT API server need to run with the MetaTrader 5 terminal?

The server must run on the Windows machine where the MetaTrader 5 terminal is installed and logged in. HTTP clients can connect from other operating systems.

Can I put MT API under a reverse-proxy path prefix?

Set MT5API_ROUTER_PREFIX to the desired prefix, such as /api/v1. If omitted, routes are served at root level.

Does MT API support response formats other than JSON?

Yes, it supports JSON and Apache Parquet response formatting through content negotiation.

Answers sourced from github.com

Community

Collected 52 days ago - public community threads