Cloud APIs for MT4, MT5, cTrader and TradeLocker

Connect your code
to MT4 & MT5
from anywhere.

Read account data, stream prices, and execute trades from Python, Node.js, or C# through managed REST and gRPC APIs — without managing a Windows VPS.

No card needed to sign up Cloud EAs, trade copiers & VPS Pay only for usage
MT4, MT5, cTrader & TradeLocker support
Managed terminal recovery
Read account data · cURL

Connect a demo account in your dashboard, then replace the API key and terminal ID below.

curl --request GET "https://mt5.mrpc.pro/AccountSummary" \
  --header "APIKey: YOUR_API_KEY" \
  --header "id: YOUR_TERMINAL_ID"

Read-only request

Returns the account balance, equity and details. It does not place a trade.

Open the MT5 API explorer

What would you like to do first?

Choose a goal and we'll open the right setup. You can switch at any time.

MT5 API · 2:02

Run your first MT5 API demo.

Connect. Read. Open a demo position. Inspect it, close it, and disconnect.

Run a live demo Watch on YouTube Watch video and read the transcript
Read the transcript

This tutorial shows you how to run a complete MT5 API example. We will connect, read account data, open and inspect a demo position, then close it and disconnect.

Open M R P C dot pro slash API. Click Run a live demo to jump to the example.

Every language listed here can run online on this website. For this walkthrough, choose JavaScript. The selected tab turns blue, and the example code changes to match.

Click Run full demo. This creates a fresh demo account and connects to MT5. Keep the page open while the console reports each stage.

Read the live console. After connecting and reading the account, the example opens a zero point zero one lot Euro U S dollar demo position. It reads the position, closes it, verifies the close, and disconnects. Only demo funds are traded.

Check the result before using the code. Success and disconnected must both be true. The open response reports trade retcode done. The opened positions include the position ticket. The final position list should be empty.

When signed in, click Download example. Expand Run locally for the runtime requirements and command. Keep your API key private. Guests can try the browser demo free, and sign up to download their own example.

You have completed the demo workflow. Use your own API key for your application, retain the cleanup steps, and always disconnect when finished. You can replay any step and follow the written instructions without audio.

All tutorials →

Connect to MT4 & MT5 brokers

FTMO IC Markets Pepperstone Exness FundedNext Tickmill XM FXCM
Security & Speed

Enterprise-Grade Reliability & Security

Engineered for quantitative funds, algorithmic traders, and high-volume trade copying.

Non-Custodial & Encrypted

Your funds stay strictly with your broker. Credentials are AES-256 encrypted at rest and never shared.

Managed Cloud Infrastructure

Hosted in Falkenstein, Germany. Request and execution times depend on the broker, network, and operation.

Zero Windows Maintenance

We manage terminal hosting and automatic session recovery so you can focus on your application.

How it works

Your application calls MetaRPC, which manages the MetaTrader terminal and connects it to your broker.

1

Your Application

Your app makes REST, WebSocket, or gRPC calls to the MetaRPC cloud API.

Any language: C#, Java, Python, PHP, Go, JS
2

Hosted Terminal

Official MT4 and MT5 terminals run on our servers and take your calls through an Expert Advisor.

Managed infrastructure, auto-scaling
3

MT4/5 Servers

Expert Advisor sends your requests to the broker server and returns results.

Direct RPC Socket connection
Supports RESTful • WebSocket • gRPC protocols

Pricing & Access

$4 per terminal/month. As low as $1 at volume.

Cloud Hosted (Pay-As-You-Go)

Usage estimate

Account-hour calculator

CURRENT TIER Developer Base Tier

Start at $4 per terminal for 720 hours (30 days). Each hour is charged at the rate your combined month-to-date account-hours have reached: $3 from 2,000 hours, down to $1 from 1,500,000 hours. A lower rate applies to usage from then on, not to earlier charges, and the count restarts on the 1st of each month. Usage is charged per minute.

Terminals connected 24/7 1
0 100 500 2,500 5,000
HOURLY RATE REACHED $0.0056 per account-hour, at month end
AVERAGE PER TERMINAL $4 per terminal for the month
Estimated Total / Month $4 all terminals, a full month 24/7
VOLUME SAVING 0% vs $4 per terminal
Minimum top-up: $1.00. Demo-account purchases, EA workloads, and VPS hosting are charged separately. This estimate covers one standard API terminal. Get started

Cloud Infrastructure Highlights

  • No Base Commitment $0 monthly minimums. Pay only for terminals while they are connected.
  • Fully Managed No local terminal installations or remote VPS instances required.
  • European Cloud Hosting Terminals are hosted in Falkenstein, Germany. Test with your broker to measure the latency for your integration.
  • Volume Discounts Your rate decreases as accumulated account-hours reach each monthly usage threshold.
  • Prepaid Balance Top up your balance by credit card, wire transfer, or crypto.
Aggregated Billing Account-hours are combined across your terminals. Each usage charge uses the tier reached at that time; the selected tier is not a retroactive discount on earlier usage.

cTrader and TradeLocker: 50% of the MetaTrader price

The same API key, balance and volume tiers. Only connected time is billed; a connection you close within its first hour is billed as one hour, also at half price.

Tier (account-hours this month) MT4 / MT5, per account per month cTrader / TradeLocker, per account per month cTrader / TradeLocker, per hour
Developer Base Tier 0+ $4.00 $2.00 $0.0028
Standard Tier 2,000+ $3.00 $1.50 $0.0021
Growth Tier 10,000+ $2.00 $1.00 $0.0014
High-Volume Tier 100,000+ $1.50 $0.75 $0.0010
Enterprise Scale Tier 500,000+ $1.25 $0.625 $0.0009
Max Volume Tier 1,500,000+ $1.00 $0.50 $0.0007

Connected hours count at 50% toward the monthly volume tiers; an account is billed once, however many connections it has. At zero balance, connections are suspended and resume automatically after a deposit.

Trade copier: $1.00 per month per copier

A copier costs $1.00 for 720 hours (30 days) and is billed by the minute only while it runs — pause it and the meter stops. One flat rate: no tiers, no minimum, and its hours do not count toward the terminal volume tiers. It is paid from the same balance as your terminals; when the balance is used up, your copiers are suspended and resume automatically after a deposit (a copier you paused yourself stays paused).

Need a custom enterprise setup?

We provide specialized builds for hedge funds and brokers requiring custom logic, dedicated infrastructure, and 24/7 priority support.

Talk to an Expert
Cloud VPS hosting

Choose the resources you need

Choose CPU, RAM, storage and an operating system in your dashboard. VPS hosting is charged per minute from your prepaid balance, separately from API terminals and EAs.

$4.00 per vCPU + $4.00 per 2 GB RAM + $4.00 per 32 GB SSD, per month.

1 vCPU · 2 GB RAM

32 GB SSD

$12.00 /month equivalent

About $0.0167/hour while running

When stopped: storage only, about $0.0056/hour.

Configure in dashboard

2 vCPU · 4 GB RAM

64 GB SSD

$24.00 /month equivalent

About $0.0333/hour while running

When stopped: storage only, about $0.0111/hour.

Configure in dashboard

4 vCPU · 8 GB RAM

128 GB SSD

$48.00 /month equivalent

About $0.0667/hour while running

When stopped: storage only, about $0.0222/hour.

Configure in dashboard

8 vCPU · 16 GB RAM

256 GB SSD

$96.00 /month equivalent

About $0.1333/hour while running

When stopped: storage only, about $0.0444/hour.

Configure in dashboard

Example configurations. Monthly estimates assume 720 hours of continuous use; actual charges follow hourly usage. CPU and RAM charges stop when the VPS is stopped; storage remains billable.

FAQ

Frequently Asked Questions

Everything you need to know about integrating with MetaRPC APIs and Trade Copier.

No. MetaRPC runs and manages the MetaTrader terminals in the cloud. You interact solely through modern REST, WebSocket, or gRPC endpoints from Linux, macOS, Docker, or serverless environments.