Syntax
GetAccountSummary(AccountID As Long)
Description
The GetAccountSummary operation is used to return the account details as As AccountSummary.
Request Parameters
Name | Description | Required |
AccountId |
|
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:
Otherwise, check Error Codes. Type: JSON Object as Array of String. |
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
See Also