MT4 API for trading applications and services.

Connect MetaTrader 4 accounts to your application through Tradesync’s unified REST API. Access account information and trading workflows while we manage the cloud infrastructure behind each connection.

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

MT4 Terminal and Direct connections

Both connection options are accessed through the unified API.

Terminal

Use a hosted MT4 trading terminal managed by Tradesync.

Direct

Connect MT4 accounts through our managed direct connectivity.

Turn MT4 account activity into product functionality.

Account data for your product

Retrieve balances, equity, connection status and open or historical trades for account dashboards and reporting.

Supported trading instructions

Use Full accounts to send open, modify and close commands. Follow command status and events to determine the outcome of an instruction.

From a trading journal to execution workflows

A journal can retrieve MT4 account history and analysis without operating a copier. When the service adds trading instructions, Full account access enables its execution workflows.

Integrate through the unified API

Select application mt4 and the supported broker_server_id for the account’s server. The current account-creation contract applies the Terminal/Direct integration choice to Full MT4 accounts; other accounts use Direct. Account creation starts connection setup asynchronously, so follow the connection status before using the account.

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();

MT4 API questions

Can I use MT4 data without running a copying service?

Yes. Readonly accounts support account viewing and analysis. Use Full access when your service needs copying or trading commands.

How do I check MT4 broker support?

Check the supported broker-server reference for the account’s server and selected application. Offering MT4 alone does not establish that a broker server is supported.

Is this an official MetaQuotes MT4 API?

This is Tradesync’s unified API and managed connection service, rather than an official MetaQuotes API.