REST + WebSocket API for MT4 & MT5

Web Trade API (MT4/MT5)

Build your own web and mobile trading apps on a REST and WebSocket API in front of your MT4 or MT5 server: live prices with the client's group spread, account, margin, positions and orders, with order calls that are safe to retry. The trade server carries only two gateway links however many clients connect, and the gateway scales to thousands of WebSocket clients.

brokertex.app / webapi

Key features

How it works

  1. 1

    Install the plugin on your MT4 or MT5 server, allow the gateway's address and set the shared token.

  2. 2

    Run the gateway on its own machine as a Windows service, with HTTPS and the plugin address.

  3. 3

    Enable rules for the accounts and symbols that may use the API; everything is off until you do.

  4. 4

    Point your app at the login endpoint and the WebSocket and start building.

Frequently asked questions

Does it support both MT4 and MT5?

Yes. Separate plugins for each server share one gateway and one identical app API.

What if an order call times out?

The status is unknown: read the positions first. Retrying with the same client order id is safe and never creates a duplicate.

Does it include charts or trade history?

The API covers prices, account, positions and orders. Candles and history are not part of it; tell us what your app needs.

AIEvery product below can be fitted with AI to match your needs: anomaly detection, risk scoring, dealer assistants, client insights and automated decisions on top of your own rules.

Other products

Ready to see it on your own server?

Book a demo and we will walk your team through the tools that fit your brokerage.

Book a demo