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 trading account you link a REST API and a WebSocket stream: MetaTrader accounts on their own dedicated cloud terminal, cTrader accounts through our cTrader bridge. 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
REST & WebSocket API with the routes MT5 uses: cTrader sign-in, account data, market data, order execution, and live streams.
View cTrader docs →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, MT5 and cTrader in the same call.
MCP server for AI agents
Let Claude, Cursor, VS Code or any MCP client read your MT4, MT5 and cTrader accounts: balances, open positions, trade history, quotes and candles. Read-only, remote or as a Docker image.
Notion trade journal
Every closed MT4, MT5 and cTrader 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, MT5 and cTrader 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.