MngDeleteAccount
MngDeleteAccount¶
Command: MngDeleteAccount
Deprecated alias: DeleteUser
DeleteUser is kept only for backward compatibility. New integrations must use MngDeleteAccount; the alias may be removed in a future release.
Description: Deletes a user account from the system by login ID.
Deletion policy:
- active market positions block account deletion
- pending orders do not block account deletion
- pending orders and trade history are deleted together with the account
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
| login | int | Yes | Login ID of the user |
Request Example¶
{
"command": "MngDeleteAccount",
"data": {
"login": 102030
}
}
Response Parameters¶
| Name | Type | Description |
|---|---|---|
| data | string | Returns "OK" if successful |
Error Responses¶
| Code | Error | Description |
|---|---|---|
| 404 | RET_USER_NOT_FOUND |
Account does not exist |
| 409 | RET_USR_HAS_TRADES |
Account still has active market positions |
| 500 | RET_* |
Internal delete or trade cleanup error |
Response Example¶
{
"data": "OK"
}