AlgoDeltaFXDocs

MT5 REST API reference

Every endpoint of the AlgoDeltaFX MetaTrader 5 API. All requests and responses are JSON over HTTPS. Import them all at once with the OpenAPI 3.1 spec or the Postman collection.

View .md Ask Claude Ask ChatGPT

Account API (v2)

Trade one MetaTrader 5 account: place, modify, cancel and close orders, and read positions, symbols and history.

Base URLhttps://api.algodeltafx.com/api/v2/forexaccount

Send the account token as Authorization: Bearer <ACCOUNT_TOKEN>. See Authentication.

Orders & positions

EndpointPathDescription
Place OrderPOST /placeorderOpen a market order or place a pending order (limit, stop, stop-limit) on an MT5 account.
Modify Order or PositionPOST /modifyorderorpositionChange the stop loss, take profit or price of an open position or pending order.
Cancel OrderPOST /cancelorderCancel a pending order by ticket, or all pending orders for a symbol and side.
Close PositionPOST /squareoffpositionClose an open position fully or partially by ticket, or close all positions on a symbol.
Get Open PositionsGET /getopenpositionsList every open position on the MT5 account.
Get Pending OrdersGET /getpendingordersList every pending (limit, stop, stop-limit) order on the MT5 account.

Account data

EndpointPathDescription
Get Account ProfileGET /getprofileRead the MT5 account profile and details.
Get SymbolsGET /getsymbolsList the tradable symbols on the account, with broker suffixes.

Trade history

EndpointPathDescription
Position HistoryPOST /gethistorypositionsClosed positions in a date range, with cursor pagination.
Deal HistoryPOST /gethistorydealsExecuted deals (fills) in a date range, with cursor pagination.
Order HistoryPOST /gethistoryordersHistorical orders (filled, cancelled, expired) in a date range.
Balance HistoryPOST /gethistorybalanceBalance operations (deposits, withdrawals, credits) in a date range.
History SummaryPOST /gethistorysummaryAggregated trading summary for a date range.

Master API (v1)

Manage many MT5 accounts: connect accounts, build copy trading groups, set lot sizing and pull daily profit.

Base URLhttps://api.algodeltafx.com/api/v1

Send the master token as Authorization: <MASTER_TOKEN> (no Bearer prefix). Get one from Get Master Token.

Authentication

EndpointPathDescription
Get Master TokenPOST /auth/userloginLog in with your AlgoDeltaFX credentials to get a master token for the Master API.

MT5 accounts

EndpointPathDescription
Add MT5 AccountPOST /users/broker/addfxbrokerConnect a new MetaTrader 5 account to your AlgoDeltaFX user.
Replace MT5 AccountPOST /users/broker/replacebrokerUpdate the login, password or server of an existing connected account.
Delete MT5 AccountPOST /users/broker/deletebrokerDisconnect and remove an MT5 account.
List MT5 AccountsGET /users/broker/getbrokersList every MT5 account connected to your AlgoDeltaFX user.
Daily ProfitPOST /users/broker/getdailyprofitDaily profit for one account over a date range.

Copy trading groups

EndpointPathDescription
List Copy GroupsGET /users/group/getgroupsList your copy trading groups.
List Group AccountsPOST /users/group/getgroupbrokersList the accounts in a copy group with their lot settings.
Add Account to GroupPOST /users/group/addgroupbrokerAdd an MT5 account to a copy group as a child, with its lot sizing rule.
Update Group AccountPOST /users/group/updategroupbrokerChange the lot sizing rule of an account in a copy group.
Pause or Resume CopyingPOST /users/group/updatechildtradingflagPause or resume copying for one child account.
Remove Account from GroupPOST /users/group/removegroupbrokerRemove a child account from a copy group.

Last updated 2026-11-04