Back to home

MetaAPI Docs

WebSocket

Use the local `/ws` endpoint for real-time events once the configured auth token is accepted and the DLL lease is active.

Connect

ws://127.0.0.1:6000/ws
Authorization: Bearer <auth_token>

What You Receive

  • Welcome messages with connection metadata
  • Event frames for account, order, position and market updates
  • Heartbeat and control messages

Requirement

The WebSocket endpoint is available only when the local DLL is authenticated and the current lease is valid. An auth token by itself is not enough if the terminal using that same token is not currently active.