Syntax
GetAccountSumm(AccId As Long)
Description
The GetAccountSumm operation is used to return the account details as listed below in response elements.
Request Parameters
Name | Description | Required |
|
Yes |
Response Elements
Name | Description |
Result |
This operation returns a given account Summary upon success. The returned array will hold the following values for each account ordered as:
Type: JSON Object as |
NOTE : Balance = TotalCommission + NetProfit + TotalDeposit+ PrevMargin + TotalInterest
FloatingPL = total PL for each position on the trade list ( To get PL callGetOrderPLmethod)
Equity = Balance + FloatingPL
Free Margin = Equity- Margin Requirement
Marginlevel—-> If margin Req (used Margin) = 0ThenMarginlevel = 100%
ElseMarginlevel =Math.Round(100 * Equity / MarginReq, 2).ToString() + “%”
Net Credit —> IfCredit >EquityThenNet Credit =Credit -Equity
ElseNet Credit = 0
Net Equity —> IfEquity > CreditThenNet Equity= Equity – Credit
ElseNet Equity = 0
Sample
GetAccountSumm Username: Password: AccountId :
See Also