One API. Every broker account.

Connect your users’ MetaTrader 5 and TradeLocker accounts once. Every order leaves from an account that is already logged in.

POST /accounts/acc_7f3/tradeLIVE
BUYXAUUSDrisk 0.5%SL 5.00   TP 10.00sig-2041
  1. Received by alltradingapi
  2. Mapped XAUUSD to XAUUSD.s
  3. Lot sized from 0.5% risk
  4. Sent from the account's logged-in MT5 terminal
Placing order...ms
Illustration, slowed down. In our MT5 pilot, orders filled in 160-230 ms.
  • TibiGlobe
  • PU Prime
  • Accuindex
  • Equiti
  • Vantage
  • VT Markets
  • Exness
  • FTMO
  • JustMarkets
  • UEXO Global
  • Axi
  • Ultima Markets
  • Forex.com
  • AvaTrade
  • TibiGlobe
  • PU Prime
  • Accuindex
  • Equiti
  • Vantage
  • VT Markets
  • Exness
  • FTMO
  • JustMarkets
  • UEXO Global
  • Axi
  • Ultima Markets
  • Forex.com
  • AvaTrade

MT5 servers from 71 brokers are already covered, including these.

Measured in milliseconds.

These are the times from our MT5 pilot, from API call to the broker’s confirmation, with stop loss and take profit set on the order.

~130

ms to close

160-230

ms to open

0
50
100
150
200
250
300
On a scale from 0 to 300 milliseconds, closing a position took about 130 ms and opening one took 160 to 230 ms.

84 sto log back in and resume trading after a terminal restart, with no one touching it.

24 of 24symbols mapped automatically on a new broker, including XAUUSD.s, DJ30.s and Nikkei225.s.

Same calls on every platform.

  • MetaTrader 5LiveAny MT5 broker server. Every account keeps its own terminal logged in.
  • TradeLockerLiveDemo and live, including logins that hold several accounts.
  • MetaTrader 4NextOn the roadmap. Tell us if you need it.

Five calls. That’s the integration.

Place a trade
curl -X POST https://api.alltradingapi.co/accounts/$ACCOUNT_ID/trade \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "signal_id": "sig-2041",
    "symbol": "XAUUSD",
    "side": "buy",
    "risk_pct": 0.5,
    "sl_distance": 5,
    "tp_distance": 10
  }'

The parts you would otherwise build yourself.

Execution

Risk-based sizing
Send a risk percent and stop distance. The lot comes from that broker's contract size and tick value, or send a fixed volume.
Close by signal
Every order is tagged from your signal ID, so closes still work when a broker rewrites order comments.
Stops on the order
Stop loss and take profit go in as distances and are set from the live price at that broker.

Accounts

Always logged in
Every account stays connected and ready. After a restart it logs itself back in and turns trading back on.
Symbol mapping
Send XAUUSD and we place XAUUSD.s, GOLD or whatever that broker calls it. Override any mapping yourself.
Sealed passwords
Encrypted and never returned by the API. Disconnecting an account deletes its stored login.

Control

Admin console
Live state of every account, an activity log of connections, trades and closes, and CSV export.
API tokens
One token per app or environment, revoked one at a time. Only a hash of each token is stored.
Your user IDs
Tag each account with your own user ID so accounts line up with the people in your app.

Built for

Signal apps

Put a trade button under every signal. Each user's order goes straight to their own broker account.

Priced for your volume.

Every business gets its own price, based on how many accounts you connect. Tell us about your platform and we will send a quote.

  • MetaTrader 5 and TradeLocker accounts
  • Every account kept logged in and ready
  • Trade, close and positions API with risk-based sizing
  • Automatic symbol mapping for every broker
  • Admin console, activity log and revocable API tokens

Request access

Questions buyers ask.

Which platforms do you support?

MetaTrader 5 and TradeLocker, both live today. MetaTrader 4 is on the roadmap. Tell us if you need another platform.

Do my users need to install anything?

No. Your user enters their account details in your app once, you pass them to us, and we keep the account connected from then on.

How are account passwords stored?

Encrypted with a master key and never returned by any API call. An MT5 terminal's copy is deleted as soon as it has logged in. Disconnecting an account deletes its stored password and saved login.

How fast are orders?

In our MT5 pilot, positions opened in 160 to 230 ms and closed in about 130 ms, with stop loss and take profit set on the order. Each account's terminal is already logged in, so there is no login wait.

What happens if a terminal restarts?

It logs itself back in and turns trading back on with no manual step. In the pilot that took 84 seconds after a restart.

How is the lot size worked out?

Send risk_pct and sl_distance and we calculate the lot from that broker's contract size and tick value, within its minimum, maximum and step. Or send a fixed volume.

What if a symbol is not mapped automatically?

The account lists it under unmapped. Set it yourself with PUT /accounts/{id}/symbols/{SYMBOL} and the broker's symbol name.

Which brokers work?

Any MT5 broker server and any TradeLocker broker. We already cover MT5 servers from 71 brokers. If yours is missing, tell us.