MT5 now at full feature parity with MT4

Trade MT4 & MT5 from your codeNo terminal required

We host the MetaTrader terminals in the cloud. You control them through a REST API and WebSockets, from Python, Go, JavaScript or any language that speaks HTTP.

broker servers
9,000+
hosted terminals
24/7
official SDKs
Python + Node
Trusted by trading teams at

Everything you need to trade from code

A complete API toolkit built for speed, reliability, and developer experience.

WebSocket streams

Real-time bid/ask quotes, order updates, and tick data pushed to your app with sub-millisecond latency.

WS /mt5/{account_id}/wslive
→ {"action": "subscribe", "topic": "prices", "symbol": "EURUSD"}{"type": "tick", "symbol": "EURUSD", "data": {"bid": 1.15325, "ask": 1.15333}}{"type": "tick", "symbol": "XAUUSD", "data": {"bid": 2341.50, "ask": 2341.82}}{"type": "bar", "symbol": "EURUSD", "timeframe": "M5", "data": {"close": 1.15330}}{"type": "trade", "data": {"symbol": "EURUSD", "type": "Buy", "volume": 0.1}}{"type": "account", "data": {"equity": 9686.15, "margin": 21.40}}{"type": "tick", "symbol": "GBPUSD", "data": {"bid": 1.26514, "ask": 1.26529}}
GET /status"status": "ready"

Cloud-hosted terminals

No VPS, no local MetaTrader, no Windows server. We run your MT4/MT5 terminals in the cloud, always on, always connected.

GET /AccountSummary"equity": 9686.15

REST API

Simple, predictable endpoints for account management, order execution, and trade history. Every call returns clean JSON.

X-API-Key: fxs_ro_…# read-only, two accounts

Secure by default

A full-access key for trading, read-only keys scoped to the accounts you choose, and encrypted connections throughout.

pip install fxsocketnpm install @fxsocket/sdk

Any language

Stop writing MQL. Use Python, JavaScript, Go, Rust, Java, C# or anything that speaks HTTP. Plain JSON in, plain JSON out.

GET /PriceHistory?symbol=EURUSD&timeframe=H1

Historical data

Pull candlestick history (OHLC bars with tick volume and per-bar spread) for backtesting, and stream live ticks over WebSocket.

Up and running in three minutes

No complex setup. No EA installs. Plain HTTP and JSON from the language you already write.

  1. 1

    Add your broker account

    Enter your broker credentials. We spin up a cloud-hosted MetaTrader terminal for you, no VPS, no installs, nothing to maintain.

  2. 2

    Get your API keys

    Generate keys from the dashboard: a full-access key for trading, or read-only keys limited to the accounts you pick.

  3. 3

    Start building

    Use REST or WebSocket from any language, or the Python and Node.js SDKs. Execute trades, stream data, automate everything.

example.py
1import requests
2
3# Read your live account balance & equity
4r = requests.get(
5 "https://api.fxsocket.com"
6 "/mt5/ACCOUNT/AccountSummary",
7 headers={"X-API-Key": "fxs_live_xxx"},
8)
9
10acct = r.json()
11print(acct["balance"], acct["equity"])
Response200 application/json
{
  "balance": 9686.15,
  "equity": 9686.15,
  "freeMargin": 9686.15,
  "currency": "USD"
}

Supports MT4 and MT5

Cloud-hosted MT4 and MT5 terminals. We run them, you just call the API.

Built for how traders actually work

Whether you're a solo algo trader or running a prop firm with hundreds of accounts. FxSocket fits your workflow.

  • Deploy automated trading strategies that execute around the clock without babysitting a terminal. Connect your Python or Node.js bot to our API and let it trade while you sleep.

    Learn more →
  • WS/wsbars EURUSD M15
  • POST/OrderSendbuy 0.10
  • GET/OpenedOrdersone open position
  • POST/OrderClosetake the +32 pips

Simple, transparent pricing

Shared or dedicated. Pick what fits, get full API access on every plan.

Starter
€12 / account / mo

Everything you need to trade programmatically. Built for solo traders, indie devs, and startups.

Start building
  • Included in every plan
  • Full REST API + WebSocket access
  • Live and demo accounts
  • Order execution under 30ms
  • Candlestick history with per-bar spread
  • Python, Node, Go or any language
  • Your own dedicated terminal per account
Premium
€949 / mo

Top limits, a dedicated support channel, and first access to new features.

Subscribe
  • Everything in Starter, plus
  • 110 trading accounts included
  • €8 per additional account
  • Highest API rate limits
  • Dedicated support channel
  • Early access to new features

Private hosting

Need a fixed IP or a dedicated server for a prop firm? Explore private hosting, a dedicated MT4/MT5 server from €17/mo, billed separately from your plan.

Your funds

FxSocket never has access to your funds. We connect to your broker's terminal. We can't withdraw, deposit, or move money. Your broker holds your funds.

Rated 5/5 on Trustpilot →

Frequently asked questions

See all frequently asked questions →

Something else? Write to info@fxsocket.com or message us on Telegram.

Do I need to run my own MetaTrader terminal?+
No. We host fully managed MT4 and MT5 terminals in the cloud. Just enter your broker credentials and we handle the rest. No VPS, no local install, no Windows server required.
Which programming languages are supported?+
All of them. Our REST API and WebSocket work with any language that can make HTTP requests, Python, JavaScript/Node.js, Go, Rust, and more. No MQL required. There are official Python and Node SDKs, and every account serves its own OpenAPI 3 spec, so you can generate a typed client for any other language.
What’s the typical latency for order execution?+
Our cloud terminals are co-located near major broker infrastructure. Average API-to-broker latency is under 30ms. WebSocket price streams deliver tick data in real-time with sub-millisecond processing.
Is it safe to connect my live trading account?+
All connections are encrypted with TLS. Trading needs your full-access key; for dashboards and monitoring you can create read-only keys, each limited to the accounts you choose. Your broker credentials are encrypted at rest.
Can I manage multiple accounts at once?+
Yes. Connect multiple MT4 and MT5 accounts under one API key, and address each one by its account_id. Perfect for prop firms managing many traders or running multiple strategies.
Which brokers are supported?+
Any broker that supports MT4 or MT5. You connect your existing broker account. We don’t act as a broker or touch your funds. If your broker gives you MT4/MT5 login credentials, it works with FxSocket.
What happens if your servers go down?+
Open positions stay with your broker regardless of our server status, so an outage on our side does not close or change your trades. If you need a contractual uptime SLA, it is available on request.
What’s the difference between Starter and Pro?+
Only the account allowance and the rate limits. Starter bills €12 per account per month; Pro is a flat €549 that includes 60 accounts, adds further ones at €9, raises the rate limits across the API, and adds same-day priority support. Every API feature is on both.
How do I get started?+
Create an account, add your broker credentials, and grab your API key. You can make your first API call in under five minutes. No approval process, no setup calls required.
How does pricing work?+
Starter is €12 per account per month. Pro is €549 a month and includes 60 accounts with higher rate limits, plus €9 for each account beyond that. Premium is €949, includes 110 accounts at the highest limits, and adds further accounts at €8. No hidden fees and no feature gates.

See all frequently asked questions →

Something else? Write to info@fxsocket.com or message us on Telegram.

Your first API call is five minutes away

Connect your broker, grab your API key, and start trading from your own code. No VPS, no MQL, no installs.