For AI agents: this page is also available as Markdown at /docs.md. The index of every docs page is /docs/llms.txt.
API documentation
FxSocket gives every connected trading account its own dedicated cloud terminal, with a REST API and a WebSocket stream. Pick your platform to dive into the reference, or go straight to the platform-wide API for multi-account execution and billing.
MetaTrader 5
REST & WebSocket API: account management, account data, market data, order execution, and live streams.
View MT5 docs →MetaTrader 4
REST & WebSocket API: account management, account data, market data, order execution, and live streams.
View MT4 docs →cTrader Coming soon
cTrader support is on the roadmap. Its REST & WebSocket reference will live here alongside MT4 and MT5.
Platform API
The /v1 layer above the terminals: send one order to many accounts, close across them by selector, and top up the prepaid balance that renews them. Works across MT4 and MT5 in the same call.
MCP server for AI agents
Let Claude, Cursor, VS Code or any MCP client read your MT4 and MT5 accounts: balances, open positions, trade history, quotes and candles. Read-only, remote or as a Docker image.
Notion trade journal
Every closed MT4 and MT5 trade lands as a row in a Notion database, once each, with optional daily balance and equity snapshots. No code.
Outbound webhooks
A signed JSON event at your own HTTPS endpoint for every MT4 and MT5 trade, pending order, balance change and broker disconnect. For n8n, Make, Zapier or your own code.
Docs for AI coding agents
A drop-in AGENTS.md rules file, every page as Markdown, and the whole reference in llms-full.txt, so Claude Code, Cursor, Codex and Copilot read the API instead of guessing it.