Skip to main content

Get account request

Get account details based on login name

Request address

  • API Address (requestURI) : /api/v1/account/getAccByLogin

Request parameters

Parameter nameTypeRequirementdescription
loginLongRAdministrator account
accountLoginLongRCurrent account login

Sample request

{
"login": 100001,
"accountLogin": 200000211
}

Response parameters

Parameter nameTypeRequirementdescription
loginLongRThe user's login ID
currencyDigitsIntegerRThe number of digits after the decimal point in the currency
balanceDoubleRThe user's account balance
creditDoubleRThe credit amount in the user's account
marginDoubleRThe margin used in the user's account
marginFreeDoubleRThe free margin available in the user's account
marginLevelDoubleRThe margin level in the user's account
marginLeverageIntegerRThe leverage of margin used by the user
marginInitialDoubleRThe initial margin in the user's account
marginMaintenanceDoubleRThe maintenance margin in the user's account
profitDoubleRThe profit in the user's account
storageDoubleRThe storage in the user's account
floatingDoubleRThe floating amount in the user's account
equityDoubleRThe equity in the user's account
soActivationIntegerRThe stop out activation level
soTimeIntegerRThe stop out time
soLevelDoubleRThe stop out level
soEquityDoubleRThe stop out equity
soMarginDoubleRThe stop out margin
blockedCommissionDoubleRThe blocked commission in the user's account
blockedProfitDoubleRThe blocked profit in the user's account
assetsDoubleRThe assets in the user's account
liabilitiesDoubleRThe liabilities in the user's account

Sample response

{
"code": "200",
"desc": "Success",
"data": {
"login": 200000211,
"currencyDigits": 2,
"balance": 10011.86,
"credit": 0.0,
"margin": 0.0,
"marginFree": 10011.86,
"marginLevel": 0.0,
"marginLeverage": 100,
"marginInitial": 0.0,
"marginMaintenance": 0.0,
"profit": 0.0,
"storage": 0.0,
"floating": 0.0,
"equity": 10011.86,
"soActivation": 0,
"soTime": 0,
"soLevel": 0.0,
"soEquity": 0.0,
"soMargin": 0.0,
"blockedCommission": 0.0,
"blockedProfit": 21.2,
"assets": 0.0,
"liabilities": 0.0
}
}