Without a VPS
MT5 API without a VPS.
The old way is a Windows server, a terminal per account, an EA on a chart and a watchdog. The API way is one base URL and a key. The broker connection still has to exist; the difference is who runs it.
The old way
- A Windows VPS, patched and monitored.
- One MetaTrader 5 terminal per account.
- An EA on a chart, kept alive by hand.
- Your own reconnect logic for dropped sessions.
- A watchdog for the watchdog, because a terminal can look connected and not be.
With Socketrade
- One HTTPS base URL and one API key.
- One seat per connected account, added with server, login and password.
- REST for balances, positions, history and orders.
- A WebSocket for live bid/ask ticks.
- The connection, reconnects and terminal lifecycle are ours to watch.
What you stop paying for
- A Windows VPS and its patching, reboots and disk alarms.
- A terminal per account and the RAM that goes with it.
- An EA maintenance loop, recompiles and chart reloads.
- The reconnect code you would otherwise write and page yourself about.
What still needs care
- The broker's exact server name, symbol names and contract sizes.
- Weekend market hours: forex is closed; synthetics are not.
- Your own risk, sizing and idempotency logic. The API carries orders, it does not decide them.
- Latency to the broker. The API removes the VPS, not the network.
The whole setup
curl -X POST https://api.socketrade.com/v2/accounts \
-H "X-API-Key: $SOCKETRADE_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountNumber": "41299492",
"accountPassword": "your-demo-password",
"accountServerHost": "Deriv-Demo",
"name": "Demo"
}'
# then
curl https://api.socketrade.com/v2/acc_.../status \
-H "X-API-Key: $SOCKETRADE_KEY"