TS MT5 API
A hosted REST and WebSocket API for MetaTrader 5 and MetaTrader 4 accounts. Read quotes, positions and history and place orders over HTTPS. You get a base URL and an API key; that is all you need. One key serves both platforms, demo and live.
No VPS, no terminal, no EA, no Windows box: your bot calls HTTPS from wherever it already runs - a laptop, a cron job, a cloud function, a Raspberry Pi. The beta is free while in testing: every logged-in user gets a 7-day trial.
Your access
No VPS, no terminal, no EA
We run the service and keep the connection to your broker. You call HTTPS endpoints from any language - Python, Node, C#, curl - from any machine, on any operating system.
Trade and read
Quotes, bars, positions, pending orders, history, and market / limit / stop / stop-limit orders with SL and TP.
Safe by design
Idempotent order placement, a separate generous budget for closing, and a wind-down window so you can always flatten.
How it works
- Log in and start your free 7-day trial above. Your key is shown once - store it somewhere safe.
- Add your MT5 or MT4 login (demo or live) with one call (
PUT /accounts/{id}). Your password is stored encrypted and is never returned. An MT4 account takes a one-time setup of about a minute before its first connect. - Open a session with
POST /connectand start calling the API.
Beta: free while in testing. One free trial per account: 7 days and up to 300 new orders, MT5 and MT4, demo and live. Closing positions is never capped, and after the trial ends you still have 24 hours to close anything left open.
Before you start
- Demo and live accounts both work, MT5 and MT4. On a live account you are trading real money - start with small sizes, and manage your positions before the trial ends.
- MT4 accounts use the trading password (the investor password does not work for MT4 yet) and support market, limit and stop orders; see the documentation for the differences from MT5.
- The service is provided as hosted API access. No source code, software package or container image is provided or available.
- Keep your key private. If it leaks, revoke it above and issue a new one.
- New here? Read A hosted MT5 and MT4 API for your trading bots (what you can build, with code) and Place your first MetaTrader 5 order from Python (a step-by-step first order).