Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

FiveSocket API and MCP

FiveSocket gives you live MetaTrader 5 account data and policy-controlled execution over REST and remote MCP. Each live operation uses an exclusive MT5 session inside the hosted worker pool and identifies what the terminal reported separately from application-derived state.

How reads work

Every data response carries observation metadata so you always know what you are looking at:
  • observedAt is the UTC timestamp of the live observation
  • latencyMs is how long the terminal session took
  • x-request-id identifies the request for support and audit
  • responses with account data are always Cache-Control: no-store
Monetary values, prices, and volumes are decimal strings, never floats. Timestamps are UTC ISO 8601 strings.

Endpoints

The V1 surface is deliberately small:
EndpointPurpose
POST /v1/accountsLink an MT5 account with a real read-only login check
GET /v1/accountsList linked accounts
DELETE /v1/accounts/{accountId}Disable an account and revoke future reads
GET /v1/accounts/{accountId}/balanceBalance, equity, margin, and related account fields from a fresh login
GET /v1/accounts/{accountId}/positionsCurrently open positions
GET /v1/accounts/{accountId}/tradesClosed deals for a time window, cursor paginated
GET /v1/accounts/{accountId}/dealsRaw deal history for a time window, cursor paginated
GET /v1/accounts/{accountId}/ordersHistorical orders for a time window, cursor paginated
GET /v1/accounts/{accountId}/symbolsContract specifications for requested symbols
GET /v1/accounts/{accountId}/snapshotBalance, positions, and recent trades from one session
When you need more than one view of an account, prefer snapshot. It serves everything from a single exclusive login, so you pay the login latency once.