Appendix: enums & data models

Order types (MT5 — orders endpoint type)

BUY · SELL · BUY_LIMIT · SELL_LIMIT · BUY_STOP · SELL_STOP · BUY_STOP_LIMIT · SELL_STOP_LIMIT

Order types (MT5 — margins endpoint type)

ORDER_TYPE_BUY · ORDER_TYPE_SELL · ORDER_TYPE_BUY_LIMIT · ORDER_TYPE_SELL_LIMIT · ORDER_TYPE_BUY_STOP · ORDER_TYPE_SELL_STOP · ORDER_TYPE_BUY_STOP_LIMIT · ORDER_TYPE_SELL_STOP_LIMIT

Candle timeframes (MT5)

M1 M2 M3 M4 M5 M6 M10 M12 M15 M20 M30 H1 H2 H3 H4 H6 H8 H12 D1 W1 MN1

Instance states

PENDING → DEPLOYING → DEPLOYED → RUNNING · STOPPED · ERROR

Trading and market-data calls require RUNNING.

Instance types

TICK (data only) · TICKS_TRADE (data + trading) · TRADE (trading)

WebSocket channels

ticks · candles · positions · trades · orders

Instance object (MT5)

{
  "id": "string (UUID)",            // instance id — used by subscription endpoints
  "accountId": "string",            // MT5 login — used by trading/market-data endpoints
  "serverName": "string|null",
  "brokerName": "string|null",
  "name": "string|null",
  "state": "RUNNING",               // see Instance states
  "type": "TICKS_TRADE",            // see Instance types
  "enabled": true,
  "lastActiveAt": "ISO 8601|null",
  "connectedAt": "ISO 8601|null",
  "errorMessage": "string|null",
  "statusMessage": "string|null",
  "createdAt": "ISO 8601",
  "updatedAt": "ISO 8601"
}

Position object

{
  "ticket": 123456789,
  "symbol": "EURUSD",
  "type": "BUY",            // or "SELL"
  "volume": 0.10,
  "openPrice": 1.08420,
  "currentPrice": 1.08550,
  "sl": 0,
  "tp": 0,
  "profit": 13.0,
  "swap": -0.2,
  "openTime": 1716631200    // unix seconds
}

Atlas is a Vedus product. This reference documents the public service-key API; operator/admin and runner-internal endpoints are intentionally omitted.