Add Account New
AddUser
Description: Registers a new user account in the system. Requires basic identity, group, and login configuration.
Request Parameters
| Name |
Type |
Required |
Description |
| group |
string |
Yes |
User group name |
| name |
string |
Yes |
Full name of the user |
| password |
string |
Yes |
Account password |
| leverage |
int |
Yes |
Account leverage (1–10000) |
| enable |
int |
Yes |
Account enable status (1 = active, 0 = disabled) |
| email |
string |
Yes |
Email address |
| login |
int |
No |
Optional user login ID (if not auto-generated) |
| comment |
string |
No |
Optional comment field |
| country |
string |
No |
Country |
| city |
string |
No |
City |
| address |
string |
No |
Street address |
| phone |
string |
No |
Phone number |
| enable_read_only |
int |
No |
If 1, user cannot perform trading actions |
| enable_change_password |
int |
No |
If 0, user cannot change password |
| send_reports |
int |
No |
If 1, system will send reports |
| id |
string |
No |
External ID or document ID |
| lead_source |
string |
No |
Marketing or acquisition source |
| user_color |
string |
No |
Optional user color code (UI feature) |
Request Example
{
"group": "standard",
"name": "John Doe",
"password": "securepass123",
"leverage": 100,
"enable": 1,
"email": "[email protected]",
"country": "USA",
"city": "New York",
"address": "123 Main Street",
"phone": "+1234567890",
"comment": "Premium user"
}
Response Parameters
| Name |
Type |
Description |
| login |
int |
Assigned login ID for the new account |
| leverage |
int |
Effective leverage assigned |
| currency |
string |
Base currency of the assigned group |
Response Example
{
"login": 102030,
"leverage": 100,
"currency": "USD"
}