Connecting MT4/MT5 via API

Guide to connecting your MT4/MT5 broker account to Xtreders. Learn about real-time trading, supported brokers, and the terminal API.

MetaTrader Integration on Xtreders

Xtreders connects directly to your MT4/MT5 trading account, bringing live trading into your browser.

How the Connection Works

The Xtreders MT Terminal uses a bridge server that communicates with MetaTrader servers via the MT Manager API. This gives you:

  • Real-time account balance and equity
  • Live open positions and pending orders
  • Ability to open, modify, and close trades
  • Real-time price streaming for all instruments
  • Trade history and statements

Supported Brokers

Any MT4 or MT5 broker that supports standard MetaTrader connections is compatible. The connection uses your account number, password, and server address.

Setting Up Your Connection

  1. Navigate to the Terminal page
  2. Click "Connect Account" or the settings icon
  3. Enter your MT4/MT5 account credentials
  4. Select your broker server from the list
  5. Click Connect - your account data loads in seconds

Data Available via API

Developers can access MT account data through the terminal API:

GET /mt-terminal-api/account
  - balance, equity, margin, free_margin

GET /mt-terminal-api/positions
  - All open positions with P&L

GET /mt-terminal-api/orders
  - Pending orders

GET /mt-terminal-api/history
  - Closed trades history

Security

Your MT credentials are encrypted and stored securely. Connections use TLS/SSL. You can disconnect your account at any time from the terminal settings.


Xtreders Teams

26 Blog Mensajes

Comentarios