Introduction
Api2Trade API Documentation
Api2Trade is a next-generation API provider for traders, developers, and projects working with MT4 or MT5. With our API, you don’t need to keep MetaTrader open or running.
API2Trade is a technical SaaS API infrastructure provider for MetaTrader 4 and MetaTrader 5 connectivity. We provide REST API and WebSocket access that allows developers, SaaS platforms, AI trading bot builders, signal providers, and automation tools to connect to users’ own MT4/MT5 trading accounts.
We are not a broker, investment platform, financial adviser, or asset manager. We do not hold client funds, provide trading recommendations, manage user accounts, or execute trades on behalf of customers. API2Trade only provides the technical API layer that enables users and businesses to integrate their existing MetaTrader accounts with their own software systems.
Two APIs
API v2 is current. Each connected account gets its own dedicated connection, its own endpoint, and a WebSocket for live prices, positions and trade events. Start here.
API v1 is the Legacy API. It will be switched off on 31 December 2026; until then it keeps working unchanged. Migrating to API v2 shows how to move your accounts.
Get started
Quickstart
From an API key to live quotes in four steps.
Authentication
One key, and where each API expects it.
Migrating to API v2
The Legacy API is switched off on 31 December 2026.
Account API
Connect, list and disconnect accounts.
WebSocket
Ticks, bars, positions and trade events over one socket.
AI coding agents
These docs as Markdown, and a brief for your agent's rules file.