Skip to main content
Trading API · Partner guide

Connect your backend to MetaTrader 5

Verify accounts, query the market, and manage each trade with clear workflows and integration examples.

This documentation covers only the 18 operations in the Partner Portal. The base URL for requests is https://api-trading.ap-markets.com, without /docs/partners.

Integration workflow

The token, account login, MT5 request ID, and position ticket are different identifiers. Each has its own purpose.
HTTP 200 when submitting an opening or closing order does not confirm execution. Save the returned ID and complete the follow-up before considering the trade complete.
The partner API does not include account creation, deposits, withdrawals, password changes, or symbol specifications. Deal history is available for verified accounts. Signal generation and user acceptance belong to your application.

First queries

Connect and verify an account without submitting trades.

Trading workflow

Prepare, submit, confirm, and close a trade.
Volume: lots and MT5 units: conversion, contract size, limits and units by endpoint.