MetaTrader API for prop trading

API access to your prop trading account.

Connect your funded MT4 or MT5 account to a clean REST API and a real-time WebSocket, on a dedicated server with a fixed IP your prop firm can whitelist. Trade from Python, Go, JavaScript, or any language.

your API endpoint on a fixed IP: https://159.89.245.100
Onlinefra1 · Frankfurt
Reserved IP
159.89.245.100fixed
Pepperstone-Live
#41028833 · MT5
ICMarkets-Live
#2100152 · MT4
REST WebSocketX-API-Key
REST + WebSocket API

Every MetaTrader endpoint, on your prop account.

FxSocket is a MetaTrader API for prop trading. Connect your funded MT4 or MT5 account and drive it over a clean REST API and a real-time WebSocket, from Python, Go, JavaScript, or any language that speaks HTTP. No MQL, no Expert Advisor to compile.

prop_account.py
import requests, asyncio, ssl, websockets

API = "https://159.89.245.100/8f2a1c04"   # your server + account
KEY = "fxs_live_..."

# REST: read your prop account
requests.get(f"{API}/AccountSummary",
             headers={"X-API-Key": KEY}, verify=False)

# WebSocket: stream ticks and order updates live
tls = ssl.create_default_context()
tls.check_hostname = False
tls.verify_mode = ssl.CERT_NONE

async def stream():
    url = "wss://159.89.245.100/8f2a1c04/ws"
    async with websockets.connect(f"{url}?api_key={KEY}", ssl=tls) as ws:
        async for msg in ws:
            print(msg)
  • Account dataBalance, equity, margin, open positions, and full history as clean JSON.
  • Orders & executionPlace, modify, and close market and pending orders programmatically.
  • Market dataLive quotes plus candlestick and tick history for backtesting.
  • Live WebSocket streamsBid/ask, ticks, and order updates pushed to your app in real time.
Whitelist one IP

A whitelisted IP only works if it never changes.

Prop firms and brokers let you trade from one approved address. Budget hosting hands you an IP that rotates and is shared with strangers. A private server pins one to you.

Ordinary VPS
45.83.12.9
changed on the last reboot
  • New address after a reboot, resize, or provider migration
  • Shared with strangers, so their flags become your problem
  • You install MetaTrader and babysit the box yourself
FxSocket private hosting
159.89.245.100fixed
reserved until you cancel
  • Same IP through every reboot, resize, and rebuild
  • Your machine alone, never shared with another trader
  • MT4 and MT5 ready, with a REST and WebSocket API
Global coverage

Sit right next to your broker.

Latency is distance. Pick the region nearest your broker's server, whitelist your fixed IP once, and cut slippage on news spikes and scalping.

3 trading zones9 regions1 fixed IP per server
EUEurope3
  • fra1Frankfurt
    EU broker & exchange hub
  • lon1London
    FX capital, most EU brokers
  • ams3Amsterdam
    EU peering, low latency
Closest to most EU and UK broker servers.
NANorth America3
  • nyc1New York
    US FX & equities hub
  • tor1Toronto
    Canadian brokers
  • sfo3San Francisco
    US West, crypto venues
Closest to US and Canadian broker servers.
APACAsia-Pacific3
  • sgp1Singapore
    Asia FX hub
  • blr1Bangalore
    South Asia coverage
  • syd1Sydney
    Australia, ASIC brokers
Closest to Asian and Australian broker servers.
VPS vs private hosting

Less to rent. Nothing to babysit.

What you getOrdinary VPSPrivate hosting
Runs 24/7 in the cloud
Fixed IP kept through reboots, resizes & rebuilds
Isolated machine, never shared with other traders
MT4 & MT5 ready to connect out of the box
Built-in REST + WebSocket API
Zero OS or terminal upkeep
Add, remove & resize accounts in a click
How it works

Live in a few minutes.

01

Pick a region and size

Choose the datacenter nearest your broker and how many accounts the server should hold.

02

Pay by card or crypto

€17 for the first account, €14 for each additional. Card renews monthly and cancels any time; crypto is prepaid.

03

Whitelist and connect

Your server and its fixed IP are live in 5 to 10 minutes. Whitelist the IP with your prop firm, then call the REST and WebSocket API with your API key.

Pricing

Size your server.

One server, priced by the accounts on it. Billed separately from your plan.

Accounts on this server
3
accounts
45/ month
17 first account + 14 × 2 additional
Get API access

Pay by card (renews monthly, cancel any time) or prepay with crypto. Private hosting never uses one of your plan's account seats, and you do not need a paid plan to run it.

FAQ

Questions, answered.

Yes, if your prop firm permits API or automated access. FxSocket connects to your MT4 or MT5 account with the login your prop firm gives you. Many firms ask you to trade from one whitelisted IP address, which is exactly what a private server provides.

Your prop account, now programmable.

Get REST and WebSocket API access to your funded MT4 or MT5 account, on a dedicated server with a fixed IP your prop firm can whitelist.