POST
Delete MT5 Account
Master API v1Disconnect and remove an MT5 account.
POST
https://api.algodeltafx.com/api/v1/users/broker/deletebrokerRemove a connected MT5 account from your AlgoDeltaFX user. Trading through AlgoDeltaFX stops for that account. Funds and positions at the broker are not affected.
Authentication
Send the master token as Authorization: <MASTER_TOKEN> (no Bearer prefix). Get one from Get Master Token.
Request body
JSON body, Content-Type: application/json.
- broker_idintegerrequired
ID of the connected account to delete.
Response
Returns the standard response envelope: status, msg and data.
Related endpoints
- List MT5 Accounts: List every MT5 account connected to your AlgoDeltaFX user.
- Remove Account from Group: Remove a child account from a copy group.
Example request
curl -X POST https://api.algodeltafx.com/api/v1/users/broker/deletebroker \
-H "Authorization: $MASTER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"broker_id": 101
}'import os
import requests
res = requests.post(
"https://api.algodeltafx.com/api/v1/users/broker/deletebroker",
headers={"Authorization": os.environ["MASTER_TOKEN"]},
json={
"broker_id": 101
},
timeout=30,
)
data = res.json()
print(data["status"], data.get("msg"), data.get("data"))const res = await fetch("https://api.algodeltafx.com/api/v1/users/broker/deletebroker", {
method: "POST",
headers: {
Authorization: process.env.MASTER_TOKEN,
"Content-Type": "application/json",
},
body: JSON.stringify({
"broker_id": 101
}),
});
const { status, msg, data } = await res.json();
console.log(status, msg, data);using System.Net.Http.Headers;
using System.Text;
using var http = new HttpClient();
http.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", Environment.GetEnvironmentVariable("MASTER_TOKEN"));
var body = new StringContent("""
{
"broker_id": 101
}
""", Encoding.UTF8, "application/json");
var res = await http.PostAsync("https://api.algodeltafx.com/api/v1/users/broker/deletebroker", body);
Console.WriteLine(await res.Content.ReadAsStringAsync());Last updated 2026-11-04