Skip to content

Get Account By Login

GetAccountByLogin

Description: Returns detailed account profile and margin information for a single login.

Access Control

🛡️ Access Level Required: SESSION_MANAGER, SESSION_ADMIN, SESSION_DEALER

Endpoint

GET /account/login

Request Parameters

Name Type Required Description
login int Yes Account login

Request Example

{
  "login": 1001
}

Response Parameters

Name Type Description
id int Account identifier
login int Account login
magic int Account magic identifier
customer_id int Linked customer ID
currency string Group currency
group string Account group
comment string Comment
enable int Account enabled flag
enable_read_only int Read-only flag
enable_change_password int Change password permission
leverage int Account leverage
avatar string Avatar path or URL
email string Email
name string Full name
phone string Phone
address string Address
city string City
country string Country
zipcode string Zip code
regdate int Registration timestamp
prevbalance double Previous balance
prevmonthbalance double Previous month balance
balance double Current balance
storage double Storage/swap total
commission double Commission total
credit double Credit
margin double Used margin
margin_free double Free margin
margin_level double Margin level
equity double Equity

Response Example

{
  "id": 1001,
  "login": 1001,
  "magic": 0,
  "customer_id": 0,
  "currency": "USD",
  "group": "STD-1",
  "comment": "VIP account",
  "enable": 1,
  "enable_read_only": 0,
  "enable_change_password": 1,
  "leverage": 100,
  "avatar": "",
  "email": "[email protected]",
  "name": "John Doe",
  "phone": "+35700000000",
  "address": "Street 1",
  "city": "Limassol",
  "country": "CY",
  "zipcode": "3010",
  "regdate": 1713000000,
  "prevbalance": 1200.5,
  "prevmonthbalance": 1100.0,
  "balance": 1500.0,
  "storage": -12.5,
  "commission": -3.2,
  "credit": 0.0,
  "margin": 250.0,
  "margin_free": 1250.0,
  "margin_level": 600.0,
  "equity": 1484.3
}