Documentation

Everything you need to connect accounts and execute trades through the WireMT REST API.

Base URL: https://wiremt-api.newedgeflow.com — All requests require your API key in the x-api-key header.
1
Get Your API Key
Go to your dashboard and copy your Live or Test key. Test keys work on demo accounts. Live keys work on real accounts.
2
Connect an MT5 Account
Send the account's login, password, and server name. WireMT connects server-side — nothing to install on the trader's machine.
cURL
curl -X POST https://wiremt-api.newedgeflow.com/v1/connect \ -H "Content-Type: application/json" \ -H "x-api-key: wmt_live_your_key_here" \ -d '{ "login": 436722880, "password": "your_mt5_password", "server": "Exness-MT5Trial9" }'
Response 200
{ "id": "acc_b3ed7fc4b0d84f16", "status": "connected" }
Save the id — you'll use it for every trade, close, and query on this account.
3
Execute a Trade
Send a BUY or SELL with the account ID, symbol, side, and volume (in lots).
cURL
curl -X POST https://wiremt-api.newedgeflow.com/v1/trade \ -H "Content-Type: application/json" \ -H "x-api-key: wmt_live_your_key_here" \ -d '{ "id": "acc_b3ed7fc4b0d84f16", "symbol": "EURUSD", "side": "buy", "volume": 0.01 }'
Response 201
{ "ticket": 3265792315, "symbol": "EURUSDm", "side": "buy", "volume": 0.01, "price": 1.08542 }
4
Close, Modify, or Monitor
Use the ticket number to close or modify the trade. Check open positions and account balance at any time.
POST /v1/close
Close by ticket + optional partial volume
POST /v1/modify
Change SL/TP on an open trade
GET /v1/positions
List all open positions
GET /v1/account
Balance, equity, margin info