Skip to content

AccountRecord

AccountRecord

AccountRecord — structure for storing account data, personal details, financial parameters, and security settings in the platform.

Field Type Description
login int User login (unique identifier)
group std::string User group (e.g., "Admin", "Trader")
password std::string Password (usually encrypted)
enable int Account status (1 - active, 0 - blocked)
enable_change_password int Whether password change is allowed (1 - yes, 0 - no)
enable_read_only int Read-only mode (1 - trading disabled)
enable_otp int Two-factor authentication (OTP) enabled
enable_reserved int[2] Reserved parameters
password_investor std::string Investor password (read-only mode)
password_phone std::string Password for phone operations confirmation
name std::string Full name
country std::string Country of residence
city std::string City of residence
state std::string State/region
zipcode std::string Postal code
address std::string Address
lead_source std::string Client source (e.g., "Ads", "Partner")
phone std::string Contact phone number
email std::string Email
comment std::string Additional user comment
id std::string Identification number (passport, tax ID, etc.)
status std::string Client status (e.g., "Active", "VIP", "Blocked")
regdate time_t Registration date
lastdate time_t Last login date
leverage int Leverage (e.g., 100 for 1:100)
agent_account int Referral agent ID
timestamp time_t Last update timestamp
last_ip int Last login IP address (numeric format)
balance double Current balance
prevmonthbalance double Balance at the end of the previous month
prevbalance double Balance at the end of the previous day
credit double Credit funds
interestrate double Interest rate
taxes double Tax deductions
prevmonthequity double Equity at the end of the previous month
prevequity double Equity at the end of the previous day
reserved2 double[2] Reserved values
otp_secret std::string Secret key for OTP
secure_reserved std::string Reserved security parameters
send_reports int Send reports by email flag (1 - yes, 0 - no)
mqid int MQ system identifier
user_color std::string User color tag (e.g., for VIP clients)
unused std::string Reserved data (for future extension)
api_data std::string API integration data
margin MarginLevel Margin information (MarginLevel structure)