One integration. Both platforms.
Bring MT4 and MT5 accounts into the same product. Use familiar HTTP requests with dedicated routes for each platform.
Bring accounts, market data, and trading into your application. One API for MT4 and MT5. Built for the trading products you’re building.
Build trading tools, account dashboards, and connected experiences around a single integration.
Bring MT4 and MT5 accounts into the same product. Use familiar HTTP requests with dedicated routes for each platform.
Power your market views with individual or batch quotes. Subscribe over WebSocket to bring price updates into your application.
Build around multiple account sessions with isolated workers and trading queues. Stored connection credentials use AES-GCM encryption.
Read balances and positions, place and modify orders, close trades, and reconcile history—all from your application.
One integration for account information, market quotes, and trading requests.
Any language. Your logic.
YOU BUILD HERESessions. Requests. Events.
ACCOUNTS + MARKET DATAConnected to your broker.
YOUR BROKER ACCOUNTSDesigned for the way you build: cloud API and self-hosted subscription options.
Compare optionsPython, JavaScript, or a simple HTTP request. Get a feel for the integration before choosing your subscription.
Your API key identifies requests to the service.
Use the broker’s server name and account credentials to create a session.
Read account data, access quotes, and bring trading operations into your product.
import os
import requests
# Use your API key and an existing MT5 session token.
response = requests.get(
"https://mt5.mt2api.com/AccountSummary",
headers={"X-Api-Key": os.environ["MTAPI_API_KEY"]},
params={"id": os.environ["MTAPI_SESSION_TOKEN"]},
timeout=30,
)
# mt2api may return API errors with HTTP 201.
if response.status_code != 200 or response.headers.get("X-MtApi-Error-Code"):
raise RuntimeError("Account request failed; check the session.")
account = response.json()
print(account["equity"], account["currency"])// Node.js · Use your API key and an existing MT5 session.
const { MTAPI_API_KEY, MTAPI_SESSION_TOKEN } = process.env;
const url = new URL(
"/AccountSummary", "https://mt5.mt2api.com"
);
url.searchParams.set("id", MTAPI_SESSION_TOKEN);
const response = await fetch(url, {
headers: { "X-Api-Key": MTAPI_API_KEY },
signal: AbortSignal.timeout(30_000),
});
// HTTP 201 can indicate an API error.
if (response.status !== 200 || response.headers.has("X-MtApi-Error-Code")) {
throw new Error("Account request failed; check the session.");
}
const account = await response.json();
console.log(account.equity, account.currency);# Use your API key and an existing MT5 session token.
# Required environment variables:
# MTAPI_API_KEY, MTAPI_SESSION_TOKEN
curl --get --include --max-time 30 \
"https://mt5.mt2api.com/AccountSummary" \
--header "X-Api-Key: $MTAPI_API_KEY" \
--data-urlencode "id=$MTAPI_SESSION_TOKEN"
# Inspect the response headers before using the JSON.
# Expected status: 200, with no X-MtApi-Error-Code.
# HTTP 201 can indicate an API error, not success.HTTP 201 can contain an API error. Check X-MtApi-Error-Code and the response body. Examples show the current preview API. Platform and broker coverage is still being validated.
MetaTrader connectivity from $9 a month.
A clear monthly price. No annual commitment.
For independent developers turning a trading idea into a working product.
WHAT’S INCLUDED
One idea. One account. Get building.
For teams building connected trading applications and account experiences.
WHAT’S INCLUDED
More connections. A lower cost per account.
For businesses that want to run the API in an environment they control.
WHAT’S INCLUDED
Account capacity depends on your infrastructure.
Cloud limits count simultaneous MT4 or MT5 account sessions. Self-hosted pricing covers software for one production deployment; servers and infrastructure are paid separately. API throughput and broker availability remain subject to validated service limits. Prices exclude applicable taxes.
Explore your plan in the mt2api app, or read the API documentation to prepare your integration.
Connect MetaTrader account data to your dashboards, bring quotes into your applications, or integrate order management into your trading tools. mt2api provides the API connection; your product supplies the user experience, trading logic, and risk controls.
Our monthly prices are $9/month for Starter with one active cloud connection, $49/month for Growth with ten active cloud connections, and $199/month for one self-hosted production deployment. Prices are in USD, billed monthly, and exclude applicable taxes. No annual commitment is required. Visit app.mt2api.com to get started.
An active connection is one simultaneously connected MT4 or MT5 account session. Starter includes one; Growth includes ten across both platforms. These are concurrent connection allowances, not claims of unlimited API throughput. Self-hosted has no per-account software charge, but capacity depends on your servers and workload.
Yes. The API has separate MT4 and MT5 routes for accounts, quotes, and trading. Available operations and response fields vary by platform. The current implementation is in preview, so compatibility should be checked for your broker and required workflow before production use.
mt2api connects to MetaTrader trading accounts using broker server details and account credentials. Current demo validation covers MT4 read-only connections at IG and IC Markets, and core trading workflows on MT4 and MT5 at IC Markets. Other brokers and workflows still need validation.
Yes. The self-hosted subscription is $199/month for one production deployment, with no per-account software charge. You pay for and manage your servers separately. The current implementation runs MetaTrader terminals within Docker and requires prepared terminal templates. Account capacity depends on your infrastructure and workload; setup services and dedicated support are not included in the displayed software price.
Connect your business to MT4 and MT5.