The /v1 platform API

Every connected trading account has its own terminal, with its own REST and WebSocket API. The platform API is the layer above that: the endpoints that are about your whole account rather than one terminal. Trade across many accounts in one call, and fund them from a prepaid balance. It spans MetaTrader 4 and MetaTrader 5 alike, so the same batch can carry both.

Base URLhttps://api.fxsocket.com/v1

Same authentication as the rest of the API: an X-API-Key header carrying the key from your API Key page. Paths have no trailing slash and are not rewritten, so /v1/orders is exact. Anything that moves money or places a trade needs the full fxs_live_ key; a read-only fxs_ro_ key can call every GET here and gets a 403 on the rest.

Per-account routes live elsewhere

Linking accounts, reading balances and positions, quotes and price history, single-account order execution and the live WebSocket streams are all documented per terminal: MetaTrader 5 and MetaTrader 4. The account_id those pages talk about is the same one you pass to the batch endpoints here.

OpenAPI and SDKs

The whole /v1 surface, including everything on these pages, is published as OpenAPI 3 and browsable without a key:

The official SDKs wrap it with typed models: pip install fxsocket (PyPI) and npm install @fxsocket/sdk (npm).