Trading bots & signal engines
Run your Python or Node strategy anywhere and execute on MT5 through the Account API.
Forex API · MT5 REST API
Trade any connected MetaTrader 5 account over simple HTTPS, then use the Master API to onboard accounts, build copy groups, set multipliers and pull daily profit. Everything you need to run your own trading platform, with no terminal or VPS to host.
What is the AlgoDeltaFX Forex API?
It is a REST API for MetaTrader 5 with two layers. The Account API trades a single MT5 account: place, modify and cancel orders, close positions, and read profile, symbols, open positions and pending orders. The Master API controls every account you own: add or replace MT5 accounts, create copy groups, set multiplier, fixed-lot or balance-based sizing, pause child accounts and fetch daily profit. Both use JWT authentication and run in the AlgoDeltaFX cloud.
Two APIs, one platform
Authenticate with the account's JWT and manage its orders and positions directly. Ideal for bots, signal engines and custom front ends.
Authenticate as your AlgoDeltaFX user and automate onboarding, copy groups, risk settings and reporting across every account.
Quick start
Copy your account token from the dashboard and send one request. type is the MT5 order type (0 = Buy, 1 = Sell, 2 = Buy Limit … 7 = Sell Stop Limit).
curl -X POST https://api.algodeltafx.com/api/v2/forexaccount/placeorder \
-H "Authorization: Bearer $ACCOUNT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"symbol": "EURUSD",
"type": 0,
"volume": 0.50,
"sl": 1.08200,
"tp": 1.09500
}'
import requests
API = "https://api.algodeltafx.com/api/v2/forexaccount"
headers = {"Authorization": f"Bearer {ACCOUNT_TOKEN}"}
order = {"symbol": "EURUSD", "type": 0, "volume": 0.50, "sl": 1.08200, "tp": 1.09500}
r = requests.post(f"{API}/placeorder", json=order, headers=headers, timeout=10)
print(r.json())
positions = requests.get(f"{API}/getopenpositions", headers=headers).json()
const API = "https://api.algodeltafx.com/api/v2/forexaccount";
const headers = { Authorization: `Bearer ${process.env.ACCOUNT_TOKEN}`, "Content-Type": "application/json" };
const res = await fetch(`${API}/placeorder`, {
method: "POST",
headers,
body: JSON.stringify({ symbol: "EURUSD", type: 0, volume: 0.5, sl: 1.082, tp: 1.095 })
});
console.log(await res.json());
import requests
BASE = "https://api.algodeltafx.com/api/v1"
# 1. Master token from your AlgoDeltaFX login
res = requests.post(f"{BASE}/auth/userlogin", json={
"email": EMAIL, "password": PASSWORD, "domain": "https://algodeltafx.com"
}).json()
h = {"Authorization": MASTER_JWT} # the token returned in res
# 2. Connect a client's MT5 account
requests.post(f"{BASE}/users/broker/addfxbroker", headers=h, json={
"nic_name": "Client 042", "fx_server": "Exness-MT5Real29",
"fx_login": 12345678, "fx_password": MT5_PASSWORD, "is_host_based": False
})
# 3. Follow a master group at half size
requests.post(f"{BASE}/users/group/addgroupbroker", headers=h, json={
"group_id": GROUP_ID, "broker_id": BROKER_ID,
"is_fix_lot": False, "is_balance_based": False, "multiplier": 0.5
})| type | Order | Description |
|---|---|---|
| 0 | Buy | Market buy |
| 1 | Sell | Market sell |
| 2 | Buy Limit | Buy at or below a price |
| 3 | Sell Limit | Sell at or above a price |
| 4 | Buy Stop | Buy when price rises to a level |
| 5 | Sell Stop | Sell when price falls to a level |
| 6 | Buy Stop Limit | Stop that places a buy limit |
| 7 | Sell Stop Limit | Stop that places a sell limit |
Full request/response schemas, states and error codes are in the API documentation.
What developers build
Run your Python or Node strategy anywhere and execute on MT5 through the Account API.
Use the Master API for onboarding, groups and multipliers behind your own UI. Or go white label.
Pull positions and daily profit for every client account into one reporting view.
Turn messages into MT5 orders and post fills back to your community.
Watch open exposure across accounts and pause child accounts automatically.
Connect your CRM or client portal to account onboarding and copy settings.
How it works
Create a free AlgoDeltaFX account.
Add your MT5 login, password and broker server in the dashboard.
Copy the account JWT from the dashboard, or request a master token with your AlgoDeltaFX login for the Master API.
POST to /api/v2/forexaccount/placeorder with an Authorization: Bearer header and the order JSON.
FAQ
A REST API for MetaTrader 5. The Account API places, modifies and cancels orders, closes positions and reads profile, symbols, open positions and pending orders. The Master API manages many accounts: add or replace MT5 accounts, build copy groups, set multipliers and fetch daily profit.
The Account API uses one account's JWT and trades that account. The Master API authenticates as your AlgoDeltaFX user and controls every account and group you own, which is what you need to manage many accounts or build your own platform.
With JSON Web Tokens (JWT). Account endpoints use an Authorization: Bearer header; the Master API issues a master token from your AlgoDeltaFX login.
Buy, Sell, Buy Limit, Sell Limit, Buy Stop, Sell Stop, Buy Stop Limit and Sell Stop Limit (order_type 0 to 7), with optional price, stop loss, take profit and stop-limit price.
Yes. The Master API exposes account onboarding, group and copy-setting management and reporting, so you can build your own front end. If you want it branded and hosted for you, use the White Label plan.
Yes. AlgoDeltaFX hosts the MT5 connections in the cloud. You call HTTPS endpoints and do not need to run MetaTrader, an EA or a VPS yourself.
API access is included in every plan, billed per connected account from $8 per month ($7 on the yearly plan). High-volume and white-label usage can be priced on request.
Ready in under 10 minutes
Copy trading, TradingView webhooks and the API in one platform for $8 per account a month ($7 a month on the yearly plan). No VPS, no commissions, no profit share.
Opens WhatsApp · +91 95376 74727