MT5 API for your trading product.

Build MetaTrader 5 account services into your trading product. Bring account activity, reporting and trading workflows into your application through our unified REST API.

Explore the integration
MetaTrader 5 accounts
Terminal
Direct
Tradesync unified API
Your trading application

MT5 Terminal and Direct connections

Both connection options are accessed through the unified API.

Terminal

Use a hosted MT5 trading terminal managed by Tradesync.

Direct

Connect MT5 accounts through our managed direct connectivity.

Connect MT5 operations to the service you already run.

Account views and reporting

Use account information, open and historical trades, and account analysis to add MT5 reporting to an existing product.

Follow execution outcomes

Send trading instructions on Full accounts and inspect command status, results and events. Creating a command records the instruction; it does not confirm that a trade has completed.

Add MT5 services to a customer portal

A portal can display MT5 account activity and reporting, then follow the outcome of its execution instructions through command events.

Integrate through the unified API

Select application mt5 and a supported broker-server record for that application. The account-creation reference includes both MT4 and MT5; its MT4 example is not an MT5 account. The Terminal/Direct integration choice applies to Full MT5 accounts; other accounts use Direct. Check account status as connection setup proceeds.

Start with an account request.

This server-side JavaScript example lists accounts accessible to your API credentials. It does not filter by platform, provision an account or select Terminal/Direct.

// Run on your server. Keep API credentials out of browser code.
const credentials = Buffer.from(
    process.env.TRADESYNC_KEY + ':' + process.env.TRADESYNC_SECRET
).toString('base64');

const response = await fetch('https://api.tradesync.com/accounts/', {
    headers: { Authorization: 'Basic ' + credentials }
});

if (!response.ok) throw new Error('Account request failed');
const accounts = await response.json();

MT5 API questions

Can my application support MT4 and MT5 together?

Yes. Both connect through Tradesync’s unified API. Select the appropriate application and broker-server record for each account, rather than maintaining a separate platform adapter.

Is this MetaQuotes’ own API?

This page describes Tradesync’s account integration service and unified API, not a MetaQuotes vendor API.